Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
grub2.28275
grub2-suse-remove-linux-root-param.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File grub2-suse-remove-linux-root-param.patch of Package grub2.28275
Index: grub-2.02~beta2/util/grub-mkconfig.in =================================================================== --- grub-2.02~beta2.orig/util/grub-mkconfig.in +++ grub-2.02~beta2/util/grub-mkconfig.in @@ -261,7 +261,8 @@ export GRUB_DEFAULT \ GRUB_CMDLINE_LINUX_RECOVERY \ GRUB_USE_LINUXEFI \ SUSE_BTRFS_SNAPSHOT_BOOTING \ - SUSE_CMDLINE_XENEFI + SUSE_CMDLINE_XENEFI \ + SUSE_REMOVE_LINUX_ROOT_PARAM if test "x${grub_cfg}" != "x"; then rm -f "${grub_cfg}.new" Index: grub-2.02~beta2/util/grub.d/10_linux.in =================================================================== --- grub-2.02~beta2.orig/util/grub.d/10_linux.in +++ grub-2.02~beta2/util/grub.d/10_linux.in @@ -66,7 +66,7 @@ case x"$GRUB_FS" in else rootsubvol="`make_system_path_relative_to_its_root /`" rootsubvol="${rootsubvol#/}" - if [ "x${rootsubvol}" != x ]; then + if [ "x${rootsubvol}" != x ] && [ "x$SUSE_REMOVE_LINUX_ROOT_PARAM" != "xtrue" ]; then GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}" fi fi;; @@ -77,6 +77,10 @@ case x"$GRUB_FS" in ;; esac +if [ "x$SUSE_REMOVE_LINUX_ROOT_PARAM" = "xtrue" ]; then + LINUX_ROOT_DEVICE="" +fi + title_correction_code= hotkey=1 Index: grub-2.02~beta2/util/grub.d/20_linux_xen.in =================================================================== --- grub-2.02~beta2.orig/util/grub.d/20_linux_xen.in +++ grub-2.02~beta2/util/grub.d/20_linux_xen.in @@ -80,7 +80,7 @@ case x"$GRUB_FS" in else rootsubvol="`make_system_path_relative_to_its_root /`" rootsubvol="${rootsubvol#/}" - if [ "x${rootsubvol}" != x ]; then + if [ "x${rootsubvol}" != x ] && [ "x$SUSE_REMOVE_LINUX_ROOT_PARAM" != "xtrue" ]; then GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}" fi fi;; @@ -91,6 +91,10 @@ case x"$GRUB_FS" in ;; esac +if [ "x$SUSE_REMOVE_LINUX_ROOT_PARAM" = "xtrue" ]; then + LINUX_ROOT_DEVICE="" +fi + title_correction_code= if [ -d /sys/firmware/efi ]; then Index: grub-2.02~beta2/util/s390x/zipl2grub.pl.in =================================================================== --- grub-2.02~beta2.orig/util/s390x/zipl2grub.pl.in +++ grub-2.02~beta2/util/s390x/zipl2grub.pl.in @@ -361,9 +361,13 @@ while ( <IN> ) { } else { $v = ""; } - if ($k eq "GRUB_DEVICE" && $v !~ /^UUID/ && ! -e $v) { - s{root=\@$k\@}{}g; - next; + if ($k eq "GRUB_DEVICE") { + if (($v !~ /^UUID/ && ! -e $v) || + (exists( $C{SUSE_REMOVE_LINUX_ROOT_PARAM}) && + $C{SUSE_REMOVE_LINUX_ROOT_PARAM} eq "true")) { + s{root=\@$k\@}{}g; + next; + } } s{\@$k\@}{$v}g; }
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