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
1
Yamade 2015-03-06 08:02:43 +08:00
only 4 step?
|
2
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* |