Browse Source

init: moved /etc/conf/idunn creating to rc.sysinit

0.2-maint
Alejandro Mery 16 years ago
parent
commit
7e71b4c51f
2 changed files with 21 additions and 6 deletions
  1. +21
    -0
      initramfs/etc_rc.d_rc.sysinit.sh
  2. +0
    -6
      initramfs/init.sh

+ 21
- 0
initramfs/etc_rc.d_rc.sysinit.sh

@ -29,6 +29,27 @@ check mount -n -t sysfs sysfs /sys
check mount -n -t tmpfs tmp /tmp
status
# Parse command line
init=
root=
root_mode=
for x in $(cat /proc/cmdline | tr -d ";\"'"); do
case "$x" in
ro|rw) root_mode=$x ;;
root=*|init=*)
eval "$x" ;;
esac
done
cat > /etc/conf/idunn <<EOT
rootfs="/rootfs"
root="$root"
root_mode="${root_mode:-rw}"
init="${init:-/sbin/init}"
initopt="$*"
EOT
title "Preparing /dev"
check mount -n -t tmpfs udev /dev
check mkdir /dev/pts

+ 0
- 6
initramfs/init.sh

@ -52,12 +52,6 @@ for x in USR1 USR2 TERM INT; do
trap "shutoff_handler $x" $x
done
cat > /etc/conf/idunn <<EOT
root="$root"
init="${init:-/sbin/init}"
initopt="$*"
EOT
# start the world
/etc/rc.d/rc.sysinit 2>&1 | tee -a $LOG

Loading…
Cancel
Save