linode 客服说,在 linode 上这样切换到 systemd

2015-03-05 23:47:13 +08:00
 cevincheung

1) switch to pv-grub

This would mean that you'd need to have an Ubuntu kernel installed and initramfs built (all of this will happen when you 'apt-get install linux-image'). You can then generate a menu.lst with: 'apt-get install grub; update-grub'.

2) Replace /sbin/init with systemd.

This would look something like:

mv /sbin/init /sbin/init.orig
ln -s /bin/systemd /sbin/init

中文:

1.apt-get install linux-image-3.xxxxx-generic grub systemd -y
2.mv /sbin/init /sbin/init.orig
3.ln -s /bin/systemd /sbin/init
4.reboot
348 次点击
所在节点    VPS
2 条回复
Yamade
2015-03-06 08:02:43 +08:00
only 4 step?
msg7086
2015-03-07 06:08:06 +08:00
咦为什么要换内核?我在debian上直接就装上systemd了,用的linode内核。

$ uname -a
Linux - 3.18.3-x86_64-linode51 #1 SMP Fri Jan 23 09:57:22 EST 2015 x86_64 GNU/Linux
$ ll /sbin/init
lrwxrwxrwx 1 root root 20 1月 21 04:31 /sbin/init -> /lib/systemd/systemd*

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/174803

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX