Skip to content

Commit

Permalink
fix rootflags for btrfs update (#2315)
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bonez authored Jun 21, 2023
1 parent b3f32ae commit 95b3b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/lib/scripts/embassy-initramfs-module
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ local_mount_root()
modprobe ${FSTYPE}
checkfs ${ROOT} root "${FSTYPE}"

ROOTFLAGS="$(echo "${ROOTFLAGS}" | sed 's/subvol=\(next\|current\)//')"
ROOTFLAGS="$(echo "${ROOTFLAGS}" | sed 's/subvol=\(next\|current\)//' | sed 's/^-o *$//')"

if [ "${FSTYPE}" != "unknown" ]; then
mount -t ${FSTYPE} ${ROOTFLAGS} ${ROOT} ${rootmnt}
Expand Down

0 comments on commit 95b3b55

Please sign in to comment.