Skip to content

Commit

Permalink
disable prompt/wait by tune2fs
Browse files Browse the repository at this point in the history
By disabling tty when running tune2fs.
  • Loading branch information
adrelanos committed Oct 21, 2023
1 parent c9f1699 commit e8494a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grml-debootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@ mkfs() {
bailout 1
else
einfo "Changing disk uuid for $TARGET to fixed (non-random) value $DISK_IDENTIFIER using tune2fs"
tune2fs "$TARGET" -U "$DISK_IDENTIFIER"
tune2fs "$TARGET" -U "$DISK_IDENTIFIER" </dev/null
eend $?
fi
fi
Expand Down Expand Up @@ -1432,7 +1432,7 @@ mountpoint_to_blockdevice() {
tunefs() {
if [ -n "$TUNE2FS" ] && echo "$MKFS" | grep -q "mkfs.ext" ; then
einfo "Disabling automatic filesystem check on $TARGET via tune2fs"
$TUNE2FS "$TARGET"
$TUNE2FS "$TARGET" </dev/null
eend $?
fi
}
Expand Down

0 comments on commit e8494a4

Please sign in to comment.