Run fsck on /mnt/hdd for several possible disk types (#454)

This commit is contained in:
Gerhard Lausser 2021-01-02 02:33:51 +01:00 committed by GitHub
parent b90a3bcb85
commit 3445572de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
set -e
set -x
shopt -s nullglob
source /usr/share/mynode/mynode_config.sh
source /usr/share/mynode/mynode_app_versions.sh
@ -79,7 +80,7 @@ umount /mnt/hdd || true
set +e
if [ $IS_X86 = 0 ]; then
touch /tmp/repairing_drive
for d in /dev/sd*1; do
for d in /dev/sd*1 /dev/hd*1 /dev/vd*1 /dev/nvme*p1; do
echo "Repairing drive $d ...";
fsck -y $d > /tmp/fsck_results 2>&1
RC=$?