91zipl: Don't use contents of commented lines

Comment lines should be ignored. They should not be used for determining
the /boot/zipl device
master
Thomas Abraham 2018-12-19 18:24:41 -05:00 committed by Harald Hoyer
parent 53cb081b4c
commit 38ccf7c8e5
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ depends() {
installkernel() { installkernel() {
local _boot_zipl local _boot_zipl


_boot_zipl=$(sed -n 's/\(.*\)\w*\/boot\/zipl.*/\1/p' /etc/fstab) _boot_zipl=$(sed -n -e '/^[[:space:]]*#/d' -e 's/\(.*\)\w*\/boot\/zipl.*/\1/p' /etc/fstab)
if [ -n "$_boot_zipl" ] ; then if [ -n "$_boot_zipl" ] ; then
eval $(blkid -s TYPE -o udev ${_boot_zipl}) eval $(blkid -s TYPE -o udev ${_boot_zipl})
if [ -n "$ID_FS_TYPE" ] ; then if [ -n "$ID_FS_TYPE" ] ; then
@ -40,7 +40,7 @@ installkernel() {
cmdline() { cmdline() {
local _boot_zipl local _boot_zipl


_boot_zipl=$(sed -n 's/\(.*\)\w*\/boot\/zipl.*/\1/p' /etc/fstab) _boot_zipl=$(sed -n -e '/^[[:space:]]*#/d' -e 's/\(.*\)\w*\/boot\/zipl.*/\1/p' /etc/fstab)
if [ -n "$_boot_zipl" ] ; then if [ -n "$_boot_zipl" ] ; then
echo "rd.zipl=${_boot_zipl}" echo "rd.zipl=${_boot_zipl}"
fi fi