disable prompt/wait by tune2fs
authorPatrick Schleizer <adrelanos@whonix.org>
Sat, 21 Oct 2023 12:26:37 +0000 (08:26 -0400)
committerGitHub <noreply@github.com>
Sat, 21 Oct 2023 12:26:37 +0000 (08:26 -0400)
By disabling tty when running tune2fs.

grml-debootstrap

index 72bc703..e3404d4 100755 (executable)
@@ -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
@@ -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
 }