From da6b1999565d8d7d6504b21cb26f786166509f7a Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Tue, 29 Apr 2008 20:29:36 +0200 Subject: init: Fix hardcoded ROOT bootcase. grave bug as makes a Debian slug unbootable. Thanks Kevin Price for report and Martin Michlmayr for debugging. The cause was the reordering of the ROOT export *after* it had been sourced in init. Fix it by allowing all exported variables to be ovverriden aka hardcoded. --- init | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/init b/init index 7f1d348..3fe1fab 100755 --- a/init +++ b/init @@ -27,13 +27,6 @@ mkdir /dev/.initramfs export DPKG_ARCH= . /conf/arch.conf -# Bring in the main config -. /conf/initramfs.conf -for conf in conf/conf.d/*; do - [ -f ${conf} ] && . ${conf} -done -. /scripts/functions - # Set modprobe env export MODPROBE_OPTIONS="-qb" @@ -52,6 +45,13 @@ export panic= export blacklist= export resume_offset= +# Bring in the main config +. /conf/initramfs.conf +for conf in conf/conf.d/*; do + [ -f ${conf} ] && . ${conf} +done +. /scripts/functions + # Parse command line options for x in $(cat /proc/cmdline); do case $x in -- cgit v1.2.3