Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:GA
dracut
0032-mkinitrd-suse.sh-Use-hostonly-and-hostonly...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0032-mkinitrd-suse.sh-Use-hostonly-and-hostonly-cmdline-c.patch of Package dracut
From 410700b1b3a4c0e6c092ce453d1f7ca5aaa8c6af Mon Sep 17 00:00:00 2001 From: Thomas Renninger <trenn@suse.de> Date: Mon, 5 May 2014 08:38:44 +0200 Subject: [PATCH] mkinitrd-suse.sh: Use '--hostonly' and '--hostonly-cmdline' correctly LVM and other systems might not be working properly as the --hostonly-cmdline flag has to be active by default. References: bnc#874000,bnc#874905,bnc#874363 Signed-off-by: Thomas Renninger <trenn@suse.de> --- mkinitrd-suse.8.asc | 4 +++- mkinitrd-suse.sh | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mkinitrd-suse.8.asc b/mkinitrd-suse.8.asc index 9eb8fc9..a181b75 100644 --- a/mkinitrd-suse.8.asc +++ b/mkinitrd-suse.8.asc @@ -76,7 +76,9 @@ OPTIONS **-A**:: Create a so called "monster initrd" which includes all available - features and modules. + features and modules. This calls dracut with --no-hostonly and + --no-hostonly-cmdline parameters internally, instead of the default + --hostonly and --hostonly-cmdline. **-v, --verbose**:: increase verbosity level diff --git a/mkinitrd-suse.sh b/mkinitrd-suse.sh index 1c2634f..c02062d 100755 --- a/mkinitrd-suse.sh +++ b/mkinitrd-suse.sh @@ -297,7 +297,11 @@ targets=( $targets ) [[ $kernels ]] && kernels=( $kernels ) [[ $logfile ]] && dracut_args="${dracut_args} --logfile $logfile" -[[ $host_only == 1 ]] && dracut_args="${dracut_args} --hostonly" +if [[ $host_only == 1 ]];then + dracut_args="${dracut_args} --hostonly --hostonly-cmdline" +else + dracut_args="${dracut_args} --no-hostonly --no-hostonly-cmdline" +fi [[ $force == 1 ]] && dracut_args="${dracut_args} --force" [[ $dracut_cmdline ]] && dracut_args="${dracut_args} --kernel-cmdline ${dracut_cmdline}" [ -z "$(type -p update-bootloader)" ] && skip_update_bootloader=1 -- 1.8.4.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor