Skip to content

Commit

Permalink
Merge pull request #101 from ajayswar-s/main
Browse files Browse the repository at this point in the history
Regarding sh err & mount /sys error rectification
  • Loading branch information
chetan-rathore authored Sep 11, 2023
2 parents d1e16b4 + 2e96935 commit 58f8289
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions common/ramdisk/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@

#Mount things needed by this script
/bin/busybox mount -t proc proc /proc
/bin/busybox mount -t sysfs sysfs /sys


if ! mountpoint -q /sys; then
echo "Mounting /sysfs..."
/bin/busybox mount -t sysfs sysfs /sys
else
echo "/sysfs is already mounted."
fi

mount -t efivarfs efivarfs /sys/firmware/efi/efivars
echo "init.sh"

Expand Down Expand Up @@ -77,7 +85,7 @@ if [ $ADDITIONAL_CMD_OPTION != "noacs" ]; then
echo "Please press <Enter> to continue ..."
sync /mnt
sleep 3
exec sh
exec sh +m
fi
#linux debug dump
mkdir -p /mnt/acs_results/linux_dump
Expand Down Expand Up @@ -157,4 +165,4 @@ fi
sync /mnt
sleep 3

exec sh
exec sh +m

0 comments on commit 58f8289

Please sign in to comment.