init: illegal runlevel (null)

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

 



Hi all,
 here is a description of what I'm trying to do.

I created a small rootfs with buildroot and I gPXE booted it. Once that is running I do

mount -t tmpfs -o size=4G mount -t tmpfs -o size=4G none /tmp

(I have a system with 8GB of RAM)

and then i copy with scp a new rootfs (rootfs.img whose size is around 2.5GB) under /tmp

At this point, this I run this simple script

#!/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)

Any idea of what can be wrong?

Thank you all,
 Luca
-- 
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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux