Hostonly is already the default in the last dracut release,
but the default was set as a configuration file.
This commit changes that and sets the default inside the dracut.sh
script (unless of course a distribution or user overrides the default).
The hostonly configuration file is kept intentionally, but it is now
not used by the configure option by default.
*" suse "*)
configprofile=opensuse
;;
- *)
- configprofile=hostonly
- ;;
esac
# Little helper function for reading args from the commandline.
# Debian/Ubuntu specific Dracut configuration
-hostonly="yes"
return $?
}
-[[ ${hostonly-} == yes ]] && hostonly="-h"
-[[ ${hostonly-} != "-h" ]] && unset hostonly
+# hostonly shell variable defaults to "-h" if not specified
+if [[ ${hostonly-} == "no" ]]; then
+ unset hostonly
+else
+ hostonly="-h"
+fi
if [[ ${hostonly-} ]]; then
for i in /sys /proc /run /dev; do