toram support
This commit is contained in:
@@ -32,6 +32,7 @@ init_union "$CHANGES" "$UNION"
|
||||
DATA="$(find_data 60 "$DATAMNT")"
|
||||
|
||||
# copy to RAM if needed
|
||||
DATA="$(copy_to_ram "$DATA")"
|
||||
|
||||
debug_shell
|
||||
|
||||
|
||||
@@ -69,6 +69,10 @@ copy_including_deps /$LMK/kernel/fs/fuse
|
||||
copy_including_deps /$LMK/modules.*
|
||||
|
||||
depmod -b $INITRAMFS
|
||||
# trim modules.order file. Perhaps we could remove it entirely
|
||||
MODULEORDER="$(cd "$INITRAMFS/$LMK/"; find -name "*.ko" | sed -r "s:^./::g" | tr "\n" "|" | sed -r "s:[.]:.:g")"
|
||||
cat $INITRAMFS/$LMK/modules.order | grep -E "$MODULEORDER"/foo/bar > $INITRAMFS/$LMK/_
|
||||
mv $INITRAMFS/$LMK/_ $INITRAMFS/$LMK/modules.order
|
||||
|
||||
echo "root::0:0::/root:/bin/bash" >$INITRAMFS/etc/passwd
|
||||
touch $INITRAMFS/etc/{m,fs}tab
|
||||
|
||||
Reference in New Issue
Block a user