diff --git a/initramfs/init b/initramfs/init index 16e512e..427a421 100644 --- a/initramfs/init +++ b/initramfs/init @@ -4,6 +4,8 @@ export PATH=.:/:/usr/sbin:/usr/bin:/sbin:/bin +. /linuxkitlib + mount -n -t proc proc /proc mount -n -t sysfs sysfs /sys mount -n -o remount,rw rootfs / diff --git a/initramfs/initramfs_create b/initramfs/initramfs_create index 2fc9d4c..c53e9db 100755 --- a/initramfs/initramfs_create +++ b/initramfs/initramfs_create @@ -63,6 +63,7 @@ touch $INITRAMFS/etc/{m,fs}tab cp init $INITRAMFS/ chmod a+x $INITRAMFS/init +cp ../tools/linuxkitlib $INITRAMFS/ cd $INITRAMFS find . -print | cpio -o -H newc 2>/dev/null | gzip -f --best >$INITRAMFS.img