What | Removed | Added |
---|---|---|
CC | thomas.blume@suse.com |
Thanks for the patch, just a little nitpick. Not sure whether the hash character can occur in any mount name or parameter, but just to be on the safe side, I would only consider it at the beginning of the line. So, I will use: --> -VARDEV=$(sed -n '/ \/var /s/\([[:graph:]]* \).*/\1/p' /sysroot/etc/fstab) -VARFS=$(sed -n '/ \/var /s/[[:graph:]]* * [[:graph:]]* *\([[:graph:]]* \).*/\1/p' /sysroot/etc/fstab) +VARDEV=$(sed -n -e 's/^\#.*//' -e '/ \/var /s/\([[:graph:]]* \).*/\1/p' /sysroot/etc/fstab) +VARFS=$(sed -n -e 's/^\#.*//' -e '/ \/var /s/[[:graph:]]* * [[:graph:]]* *\([[:graph:]]* \).*/\1/p' /sysroot/etc/fstab) --<