Magellan Linux

Annotation of /trunk/grubby/patches/grubby-8.40.20200707-new-kernel-pkg-busybox.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3542 - (hide annotations) (download)
Mon Jul 13 11:33:51 2020 UTC (3 years, 10 months ago) by niro
File size: 565 byte(s)
-busybox compat patch
1 niro 3542 Index: grubby/new-kernel-pkg
2     ===================================================================
3     --- grubby/new-kernel-pkg (Revision 3155)
4     +++ grubby/new-kernel-pkg (Arbeitskopie)
5     @@ -274,7 +274,7 @@
6     rootdevice=$(awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/fstab 2>/dev/null)
7     if [[ -z $rootdevice ]]
8     then
9     - rootdevice=$(grep -o -P "(?<=root=)\S+" /proc/cmdline)
10     + rootdevice=$(grep "root=" /proc/cmdline | sed 's:.*root=\(.*\).*:\1:' | cut -d' ' -f1)
11     fi
12    
13     if [[ -n ${mbkernel} ]] && [[ -n ${cfgLilo} ]] && [[ ${liloFlag} != elilo ]]