Re: init: illegal runlevel (null)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/17/2009 08:41 AM, Luca wrote:
#!/bin/bash
cd /tmp
mkdir newrootfs
mount rootfs.img newrootfs
cd newrootfs
mkdir oldrootfs
pivot_root . oldrootfs
exec chroot . sh -c 'exec /sbin/init' <dev/console >dev/console 2>&1

I can see the new root is rootfs, but still there is something not working. When I run the script I get the message

init: illegal runlevel (null)


It looks like you think /sbin/init does something other than what it really does.
http://www.fedorafaq.org/basics/#runlevel

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux