summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-07-19 07:56:16 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-07-19 07:56:16 -0400
commit776eeb35f4164f8d49ec52796d3ab91334f34c9f (patch)
treeb5d5cfa4ea1e13a652a66cf592329fb9f3cae379
parent0d8f101483cbc72261514806da2df7c0bfad88f7 (diff)
downloadminitramfs-776eeb35f4164f8d49ec52796d3ab91334f34c9f.tar.xz
minitramfs-776eeb35f4164f8d49ec52796d3ab91334f34c9f.zip
forgot to mount efivarfs
-rw-r--r--init5
1 files changed, 4 insertions, 1 deletions
diff --git a/init b/init
index 503d689..db96ac4 100644
--- a/init
+++ b/init
@@ -5,11 +5,14 @@ trap 'exec sh' EXIT
export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
mount -t proc proc /proc
-mount -t devtmpfs devtmpfs /dev
+mount -t devtmpfs devtmpfs /dev || exit
# use -p to avoid "directory exists" error
mkdir -p /dev/pts
# /dev/pts for dropbear
mount -t devpts devpts /dev/pts
+# for random seed
+mount -t sysfs sysfs /sys
+mount -t efivarfs efivarfs /sys/firmware/efi/efivars
/etc/modules.sh || exit