$NetBSD$ --- initramfs/initramfs_create.orig 2022-03-27 14:01:59.000000000 +0000 +++ initramfs/initramfs_create @@ -45,12 +45,12 @@ rm -Rf $INITRAMFS mkdir -p $INITRAMFS/{bin,dev,etc,lib,lib64,mnt,proc,root,run,sys,tmp,usr,var/log} ln -s bin $INITRAMFS/sbin -cp static/busybox $INITRAMFS/bin +cp static/busybox64 $INITRAMFS/bin/busybox cp static/eject $INITRAMFS/bin cp static/mount.dynfilefs $INITRAMFS/bin/@mount.dynfilefs cp static/mount.httpfs2 $INITRAMFS/bin/@mount.httpfs2 cp static/mount.ntfs-3g $INITRAMFS/bin/@mount.ntfs-3g -cp static/blkid $INITRAMFS/bin +cp static/blkid.static $INITRAMFS/bin/blkid chmod a+x $INITRAMFS/bin/* $INITRAMFS/bin/busybox | grep , | grep -v Copyright | tr "," " " | while read LINE; do @@ -95,6 +95,13 @@ copy_including_deps /$LMK/kernel/drivers copy_including_deps /$LMK/kernel/drivers/block/zram copy_including_deps /$LMK/kernel/drivers/block/loop.* +#find /$LMK/kernel/{crypto,fs,lib,drivers} -type f | grep -v "drivers/net" | while read LINE; do +# copy_including_deps $LINE +#done +copy_including_deps /$LMK/kernel/drivers/usb +# once the driver location was identified i was able to update initramfs_create to include +copy_including_deps /$LMK/kernel/drivers/usb/storage/uas.* + # usb drivers copy_including_deps /$LMK/kernel/drivers/usb/storage/usb-storage.* copy_including_deps /$LMK/kernel/drivers/usb/host @@ -146,6 +153,7 @@ chmod a+x $INITRAMFS/shutdown ln -s ../init $INITRAMFS/bin/init cp ../livekitlib $INITRAMFS/lib/ cp ../config $INITRAMFS/lib/ +cp ../id_label $INITRAMFS/etc/ cd $INITRAMFS find . -print | cpio -o -H newc 2>/dev/null | xz -f --extreme --check=crc32 >$INITRAMFS.img