算了算了,放弃了~ 干别的事去了~ 睡个觉~
larry@loongson:~/fun/lshw/bjlx_installer$ sudo ./build.sh
[sudo] password for larry:
展开 /boot/initrd.img-6.8.6-2 到临时目录 initrd.tmp
pv: failed to read file: /boot/initrd.img-6.8.6-2: No such file or directory
pv: failed to read file: /boot/initrd.img-6.8.6-2: No such file or directory
pv: failed to read file: /boot/initrd.img-6.8.6-2: No such file or directory
pv: failed to read file: /boot/initrd.img-6.8.6-2: No such file or directory
清理文件
del lib/firmware
del bin/plymouth
del usr/share/plymouth
del usr/share/fonts
del var/cache/fontconfig
del usr/lib/udev/rules.d/55-dm.rules
del usr/lib/udev/rules.d/60-persistent-storage-dm.rules
del usr/lib/udev/rules.d/71-seat.rules
del usr/lib/udev/rules.d/73-special-net-names.rules
del usr/lib/udev/rules.d/73-usb-net-by-mac.rules
del usr/lib/udev/rules.d/75-net-description.rules
del usr/lib/udev/rules.d/95-dm-notify.rules
添加文件
add /usr/bin/pv
add /usr/bin/lsblk
add /usr/bin/zstd
add /usr/sbin/debootstrap
add /usr/sbin/partprobe
add /bin/bash
add /sbin/cfdisk
add /sbin/sfdisk
add /sbin/fdisk
add /usr/share/terminfo/x/xterm-utf8
add /usr/share/terminfo/x/xterm-color
add /usr/share/terminfo/l/linux
add /usr/share/terminfo/l/linux-16color
add /usr/share/terminfo/x/xterm
add /usr/share/terminfo/x/xterm-256color
add /sbin/hdparm
add /sbin/fsck
add /sbin/e2fsck
add /sbin/fsck.ext2 /sbin/fsck.ext3 /sbin/fsck.ext4
add /sbin/fsck.fat
add /sbin/fsck.msdos
add /sbin/fsck.vfat
add /sbin/mke2fs
add /sbin/mkfs.ext2 /sbin/mkfs.ext3 /sbin/mkfs.ext4
add /sbin/mkfs.vfat
add /usr/bin/efibootmgr
add /lib/loongarch64-linux-gnu/libext2fs.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libext2fs.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libcom_err.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libcom_err.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libblkid.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libblkid.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libuuid.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libuuid.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libe2p.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libe2p.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libdl.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libdl.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libc.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libc.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libpthread.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libpthread.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libtinfo.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libtinfo.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libfdisk.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libfdisk.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libreadline.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libreadline.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libsmartcols.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libsmartcols.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libncursesw.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libncursesw.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libefivar.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libefivar.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libefiboot.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libefiboot.so*': No such file or directory
add /lib/loongarch64-linux-gnu/libparted.so*
cp: cannot stat '/lib/loongarch64-linux-gnu/libparted.so*': No such file or directory
bluetooth.ko
btbcm.ko
btintel.ko
btmtk.ko
btrtl.ko
btusb.ko
ccm.ko
cfg80211.ko
crc16.ko
crc32c_generic.ko
crypto_user.ko
dm_mod.ko
ecdh_generic.ko
ext4.ko
fat.ko
fuse.ko
ip_tables.ko
jbd2.ko
kvm.ko
libarc4.ko
lm75.ko
loongson.ko
loop.ko
mac80211.ko
mbcache.ko
Module.ko
mousedev.ko
nfnetlink.ko
nls_cp437.ko
nls_cp936.ko
nls_utf8.ko
nvme_core.ko
nvme.ko
regmap_i2c.ko
rfkill.ko
rtw88_8822ce.ko
rtw88_8822c.ko
rtw88_core.ko
rtw88_pci.ko
sg.ko
snd_hda_codec_conexant.ko
snd_hda_codec_generic.ko
snd_hda_codec_hdmi.ko
snd_hda_codec.ko
snd_hda_core.ko
snd_hda_intel.ko
snd_hrtimer.ko
snd_hwdep.ko
snd_intel_dspcfg.ko
snd.ko
snd_pcm.ko
snd_seq_device.ko
snd_seq_dummy.ko
snd_seq.ko
snd_timer.ko
soundcore.ko
spi_loongson_core.ko
spi_loongson_pci.ko
ttm.ko
uas.ko
uio.ko
uio_pdrv_genirq.ko
usbhid.ko
usb_storage.ko
vfat.ko
xhci_pci.ko
xhci_pci_renesas.ko
x_tables.ko
zram.ko
zsmalloc.ko
lib/modules/6.8.6-2/kernel/kvm.ko.zst: 226632 bytes
lib/modules/6.8.6-2/kernel/vfat.ko.zst: 30696 bytes
lib/modules/6.8.6-2/kernel/uio_pdrv_genirq.ko.zst: 14624 bytes
lib/modules/6.8.6-2/kernel/lm75.ko.zst: 35680 bytes
lib/modules/6.8.6-2/kernel/ccm.ko.zst: 26824 bytes
lib/modules/6.8.6-2/kernel/rtw88_core.ko.zst: 274816 bytes
lib/modules/6.8.6-2/kernel/x_tables.ko.zst: 65776 bytes
lib/modules/6.8.6-2/kernel/soundcore.ko.zst: 20936 bytes
lib/modules/6.8.6-2/kernel/btrtl.ko.zst: 51864 bytes
lib/modules/6.8.6-2/kernel/btmtk.ko.zst: 17816 bytes
lib/modules/6.8.6-2/kernel/btbcm.ko.zst: 33160 bytes
lib/modules/6.8.6-2/kernel/nls_cp936.ko.zst: 140952 bytes
lib/modules/6.8.6-2/kernel/btintel.ko.zst: 99536 bytes
lib/modules/6.8.6-2/kernel/loop.ko.zst: 55584 bytes
lib/modules/6.8.6-2/kernel/zsmalloc.ko.zst: 42424 bytes
lib/modules/6.8.6-2/kernel/nvme.ko.zst: 83064 bytes
lib/modules/6.8.6-2/kernel/sg.ko.zst: 84752 bytes
lib/modules/6.8.6-2/kernel/btusb.ko.zst: 128632 bytes
lib/modules/6.8.6-2/kernel/ip_tables.ko.zst: 35560 bytes
lib/modules/6.8.6-2/kernel/ext4.ko.zst: 1014584 bytes
lib/modules/6.8.6-2/kernel/nls_utf8.ko.zst: 6416 bytes
lib/modules/6.8.6-2/kernel/fuse.ko.zst: 247008 bytes
lib/modules/6.8.6-2/kernel/rfkill.ko.zst: 56968 bytes
lib/modules/6.8.6-2/kernel/mbcache.ko.zst: 18736 bytes
lib/modules/6.8.6-2/kernel/nfnetlink.ko.zst: 26864 bytes
lib/modules/6.8.6-2/kernel/mousedev.ko.zst: 32112 bytes
lib/modules/6.8.6-2/kernel/ecdh_generic.ko.zst: 13272 bytes
lib/modules/6.8.6-2/kernel/usbhid.ko.zst: 110960 bytes
lib/modules/6.8.6-2/kernel/ttm.ko.zst: 117408 bytes
lib/modules/6.8.6-2/kernel/loongson.ko.zst: 112840 bytes
lib/modules/6.8.6-2/kernel/rtw88_8822c.ko.zst: 490960 bytes
lib/modules/6.8.6-2/kernel/uas.ko.zst: 41360 bytes
lib/modules/6.8.6-2/kernel/libarc4.ko.zst: 5024 bytes
lib/modules/6.8.6-2/kernel/fat.ko.zst: 141472 bytes
lib/modules/6.8.6-2/kernel/rtw88_8822ce.ko.zst: 6992 bytes
lib/modules/6.8.6-2/kernel/crypto_user.ko.zst: 18768 bytes
lib/modules/6.8.6-2/kernel/uio.ko.zst: 34008 bytes
lib/modules/6.8.6-2/kernel/bluetooth.ko.zst: 1657832 bytes
lib/modules/6.8.6-2/kernel/rtw88_pci.ko.zst: 42792 bytes
lib/modules/6.8.6-2/kernel/crc16.ko.zst: 5536 bytes
lib/modules/6.8.6-2/kernel/mac80211.ko.zst: 1295200 bytes
lib/modules/6.8.6-2/kernel/snd.ko.zst: 179056 bytes
lib/modules/6.8.6-2/kernel/cfg80211.ko.zst: 788504 bytes
lib/modules/6.8.6-2/kernel/crc32c_generic.ko.zst: 7048 bytes
lib/modules/6.8.6-2/kernel/jbd2.ko.zst: 179624 bytes
lib/modules/6.8.6-2/kernel/zram.ko.zst: 44864 bytes
chroot: failed to run command ‘depmod’: No such file or directory
打包为 install.img
11.5MiB 0:00:00 [17.9MiB/s] [=======================================================================================>] 100%
cp: cannot stat '/boot/vmlinu*6.8.6-2': No such file or directory
total 4152
drwxr-xr-x 6 root root 4096 May 7 23:01 grub
-rw-r--r-- 1 larry larry 233472 Jun 14 23:09 grubloongarch64.efi
-rw-r--r-- 1 root root 4009107 Jun 14 23:09 install.img
-rwxr-xr-x 1 larry larry 519 Jun 13 22:42 readme.html
ok