Magellan Linux

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

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

revision 1516 by niro, Wed Sep 7 17:48:06 2011 UTC revision 1792 by niro, Mon Apr 2 11:39:05 2012 UTC
# Line 754  add_initrd '#!/bin/sh' Line 754  add_initrd '#!/bin/sh'
754    
755  add_initrd 'mount -t proc proc /proc'  add_initrd 'mount -t proc proc /proc'
756  add_initrd 'mount -t sysfs sysfs /sys'  add_initrd 'mount -t sysfs sysfs /sys'
757  add_initrd 'mount -t tmpfs tmpfs /dev -o rw,mode=0644,size=1024'  add_initrd "if [[ -z \$(grep '[[:space:]]/dev[[:space:]]' /proc/mounts | cut -d ' ' -f2) ]]"
758    add_initrd 'then'
759    add_initrd ' # many video drivers needed exec access'
760    add_initrd ' fstype=ramfs'
761    add_initrd ' # tmpfs was suggested by Greg Kroah-Hartman'
762    add_initrd " [[ \$(grep '[[:space:]]tmpfs' /proc/filesystems | cut -d \$'\\t' -f2) = tmpfs ]] && fstype=tmpfs"
763    add_initrd ' # mount devtmpfs if supported'
764    add_initrd " [[ \$(grep '[[:space:]]devtmpfs' /proc/filesystems | cut -d \$'\\t' -f2) = devtmpfs ]] && fstype=devtmpfs"
765    add_initrd ' mount -t ${fstype} dev /dev -o exec,nosuid,mode=0755,size=10M'
766    add_initrd 'fi'
767    
768  [[ ${IMAGE_TYPE} = loopback ]] && add_initrd 'mount -t ramfs -o remount,rw /dev/ram /'  [[ ${IMAGE_TYPE} = loopback ]] && add_initrd 'mount -t ramfs -o remount,rw /dev/ram /'
769    
# Line 861  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    
873    # use devtmpfs if supported
874    add_initrd "if [ \"\$(grep devtmpfs /proc/filesystems | cut -d$'\t' -f2)\" = \"devtmpfs\" ]; then mount -t devtmpfs dev /sysroot/dev;fi"
875    
876  # unset hotplug event-manager  # unset hotplug event-manager
877  add_initrd 'echo > /proc/sys/kernel/hotplug'  add_initrd 'echo > /proc/sys/kernel/hotplug'
878    

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