Merge pull request #116 from evverx/fix-ask-cmdline-hostonly=0

base/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup
master
Harald Hoyer 2016-02-16 15:16:04 +01:00
commit 4d3e54e01a
1 changed files with 2 additions and 0 deletions

View File

@ -120,7 +120,9 @@ if getarg "rd.cmdline=ask"; then
fi

if ! getargbool 1 'rd.hostonly'; then
[ -f /etc/cmdline.d/99-cmdline-ask.conf ] && mv /etc/cmdline.d/99-cmdline-ask.conf /tmp/99-cmdline-ask.conf
remove_hostonly_files
[ -f /tmp/99-cmdline-ask.conf ] && mv /tmp/99-cmdline-ask.conf /etc/cmdline.d/99-cmdline-ask.conf
fi

# run scriptlets to parse the command line