Magellan Linux

Diff of /trunk/mkinitrd-magellan/mkinitrd.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1792 by niro, Mon Apr 2 11:39:05 2012 UTC revision 1794 by niro, Mon Apr 2 11:41:46 2012 UTC
# Line 870  add_initrd '. /etc/rootdev' Line 870  add_initrd '. /etc/rootdev'
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    
# Line 884  add_initrd 'for i in $(cat /proc/cmdline Line 881  add_initrd 'for i in $(cat /proc/cmdline
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 ]]

Legend:
Removed from v.1792  
changed lines
  Added in v.1794