Skip to content

Commit

Permalink
fix rootpart
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vishwakarma committed Nov 3, 2024
1 parent f8215c6 commit 07253ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/bootloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ bootimg_offsets() {
echo "${ARGS}"
}

ROOTPART="UUID=$(findmnt -n -o UUID /)"
grep -P '^UUID.*[ \t]/[ \t]' /etc/fstab | awk '{print $1}'

if [ "${ROOTPART}" = "UUID=" ]; then
# This means we're using an encrypted rootfs
ROOTPART="/dev/mapper/root"
Expand Down

0 comments on commit 07253ee

Please sign in to comment.