mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
fixed init
This commit is contained in:
parent
8c297c9fbb
commit
5b8be07556
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ for m in ${MODULES}; do
|
|||
done
|
||||
|
||||
# If rootdelay is empty or not a non-negative integer, set it to 10
|
||||
if [ -z "${rootdelay}" -o ! "${rootdelay}" -ge 0 ]; then
|
||||
if [ "${rootdelay}" = "" -o ! "${rootdelay}" -ge 0 ]; then
|
||||
export rootdelay=10
|
||||
fi
|
||||
# We'll wait for the root device, so make sure klibc doesn't
|
||||
|
@ -111,7 +111,7 @@ else
|
|||
/bin/mknod /dev/root b ${BLOCKDEVICE} >/dev/null
|
||||
export root="/dev/root"
|
||||
fi
|
||||
if [ ! -b "${root}" -a ! -L "${root}" ]; then
|
||||
if [ ! -b "${root}" -a ! -h "${root}" ]; then
|
||||
err "Unable to detect or create root device '${root}'"
|
||||
echo "You are being dropped to a recovery shell"
|
||||
echo " Type 'reboot' to reboot"
|
||||
|
|
Loading…
Reference in a new issue