Skip to content

Commit

Permalink
remove bad -U option on e2fsck
Browse files Browse the repository at this point in the history
Closes: #1782

Signed-off-by: Markus Storm <markus.storm@gmx.net>
  • Loading branch information
mstormi authored Jun 14, 2023
1 parent cf4d894 commit 7c19632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/backup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ mirror_SD() {
sfdisk -d ${src} | grep -q "^${src}p3" && if ! cond_redirect dd if="${src}p3" bs=1M of="${dest}3" status=progress; then echo "FAILED (raw device copy of ${dest}3)"; dirty="yes"; fi
origPartUUID="$(blkid "${src}p2" | sed -n 's|^.*PARTUUID="\(\S\+\)".*|\1|p' | sed -e 's/-02//g')"
if ! partUUID="$(yes | set-partuuid "${dest}2" random | awk '/^PARTUUID/ { print substr($7,1,length($7) - 3) }')"; then echo "FAILED (set random PARTUUID)"; dirty="yes"; fi
if ! cond_redirect e2fsck -y "${dest}2" -U random; then echo "FAILED (e2fsck)"; dirty="yes"; fi
if ! cond_redirect e2fsck -y "${dest}2"; then echo "FAILED (e2fsck)"; dirty="yes"; fi
if ! cond_redirect tune2fs "${dest}2" -U random; then echo "FAILED (set random UUID)"; dirty="yes"; fi
while umount -q "${dest}1"; do : ; done
mount "${dest}1" "$syncMount"
Expand Down

0 comments on commit 7c19632

Please sign in to comment.