Merge "Update root disk detection in is-rootdisk-device.sh"
This commit is contained in:
commit
421e672d52
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
dev=$1
|
dev=$1
|
||||||
|
|
||||||
rootdev=$(lsblk --ascii -oPKNAME -n $(findmnt -n -T / -o SOURCE | cut -d'[' -f1))
|
rootdev=$(lsblk --ascii -oPKNAME -n $(findmnt -n -T /boot -o SOURCE | cut -d'[' -f1))
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
echo "ROOTDISK_DEVICE=${rootdev}"
|
echo "ROOTDISK_DEVICE=${rootdev}"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user