870 |
add_initrd 'echo "${device} /sysroot ${rootfs} defaults,ro 0 0" > /etc/fstab' |
add_initrd 'echo "${device} /sysroot ${rootfs} defaults,ro 0 0" > /etc/fstab' |
871 |
add_initrd 'mount /sysroot || ash' |
add_initrd 'mount /sysroot || ash' |
872 |
|
|
|
# use devtmpfs if supported |
|
|
add_initrd "if [ \"\$(grep devtmpfs /proc/filesystems | cut -d$'\t' -f2)\" = \"devtmpfs\" ]; then mount -t devtmpfs dev /sysroot/dev;fi" |
|
|
|
|
873 |
# unset hotplug event-manager |
# unset hotplug event-manager |
874 |
add_initrd 'echo > /proc/sys/kernel/hotplug' |
add_initrd 'echo > /proc/sys/kernel/hotplug' |
875 |
|
|
881 |
add_initrd 'if [ "${BREAK_ENABLED}" = "yes" ]; then echo "-- Break requested, type 'exit' to resume operation ..."; ash; fi' |
add_initrd 'if [ "${BREAK_ENABLED}" = "yes" ]; then echo "-- Break requested, type 'exit' to resume operation ..."; ash; fi' |
882 |
|
|
883 |
add_initrd 'echo "-- Switching to real sysroot ..."' |
add_initrd 'echo "-- Switching to real sysroot ..."' |
884 |
add_initrd 'umount /dev' |
add_initrd 'mount --move /dev /sysroot/dev' |
885 |
add_initrd 'umount /sys' |
add_initrd 'mount --move /sys /sysroot/sys' |
886 |
add_initrd 'umount /proc' |
add_initrd 'mount --move /proc /sysroot/proc' |
887 |
|
|
888 |
[[ ${IMAGE_TYPE} = initramfs ]] && add_initrd 'exec run-init /sysroot ${INITEXEC} $@ </sysroot/dev/console >/sysroot/dev/console' |
[[ ${IMAGE_TYPE} = initramfs ]] && add_initrd 'exec run-init /sysroot ${INITEXEC} $@ </sysroot/dev/console >/sysroot/dev/console' |
889 |
if [[ ${IMAGE_TYPE} = loopback ]] |
if [[ ${IMAGE_TYPE} = loopback ]] |