V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
cevincheung
V2EX  ›  VPS

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

  •  
  •   cevincheung · 2015-03-05 23:47:13 +08:00 · 348 次点击
    这是一个创建于 3398 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条附言  ·  2015-03-06 12:04:39 +08:00
    记得update-grub
    2 条回复    2015-03-07 06:08:06 +08:00
    Yamade
        1
    Yamade  
       2015-03-06 08:02:43 +08:00
    only 4 step?
    msg7086
        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*
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   897 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 19:43 · PVG 03:43 · LAX 12:43 · JFK 15:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.