summaryrefslogtreecommitdiff
path: root/cpio_list.txt
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-11 07:55:00 -0500
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-11 08:09:28 -0500
commit3182b56e35e1a07c920ebded54fc55686ced99bf (patch)
tree33ed00cb3df1c00680dd1821034b47a5583823ef /cpio_list.txt
parent9ac1d14079b3bd400a78d650d43fb8bad1d1e7a3 (diff)
downloadminitramfs-3182b56e35e1a07c920ebded54fc55686ced99bf.tar.xz
minitramfs-3182b56e35e1a07c920ebded54fc55686ced99bf.zip
revamp module support, other refactoring
Diffstat (limited to 'cpio_list.txt')
-rw-r--r--cpio_list.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/cpio_list.txt b/cpio_list.txt
index ca93071..d4dc126 100644
--- a/cpio_list.txt
+++ b/cpio_list.txt
@@ -15,12 +15,20 @@ dir /run/cryptsetup 0755 0 0
nod /dev/console 0600 0 0 c 5 1
# symlinks
-slink /bin/sh busybox 0755 0 0
-slink /etc/mtab /proc/self/mounts 0755 0 0
+slink /bin/sh busybox 0777 0 0
+slink /etc/mtab /proc/self/mounts 0777 0 0
+# kernel.modprobe
+slink /sbin/modprobe ../bin/busybox 0777 0 0
+# required to mount /proc for busybox self-exec /proc/self/exe
+slink /sbin/mount ../bin/busybox 0777 0 0
+# required to exec switch_root after umount /proc
+slink /sbin/switch_root ../bin/busybox 0777 0 0
+
+# config files
+file /etc/modules ./modules 0644 0 0
# executables
file /bin/busybox /bin/busybox 0755 0 0
-file /etc/modules.sh ./modules.sh 0755 0 0
file /init ./init 0755 0 0
# firmware