From c4bb9a3ccbbd0538472d7a6ea025c17bfaec9e8d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 4 May 2019 02:56:21 +0200 Subject: [PATCH] sync.sh: Add "-f" option to forcibly regenerate _fs_contents from scratch. This might be useful e.g if something goes wrong with the filesystem. --- Kernel/sync.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Kernel/sync.sh b/Kernel/sync.sh index 3e4074e3de..f6267021ad 100755 --- a/Kernel/sync.sh +++ b/Kernel/sync.sh @@ -1,3 +1,9 @@ +#!/bin/bash + +if [ "$1" = "-f" ]; then + rm -vf _fs_contents +fi + if [ $(id -u) != 0 ]; then echo "This needs to be run as root" exit @@ -11,6 +17,7 @@ if [ ! -f _fs_contents ]; then fi mke2fs -F -I 128 _fs_contents + chown 1000:1000 _fs_contents mkdir -vp mnt mount -o loop _fs_contents mnt/