updated init.in mkinitramfs.sh and added lsinitramfs

This commit is contained in:
wt committed 2025-01-09 10:17:56 +07:00
1 parent ae18f34160
commit fe8e65809a
3 files changed
+56 -20

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh -e
[ -f /etc/mkinitramfs.conf ] && . /etc/mkinitramfs.conf
[ "$1" ] || exit 1
case $INITFSCOMP in
gzip) compressor="gzip -dc" ;;
lz4) compressor="lz4 -d -c" ;;
cat) compressor="cat --" ;;
xz) compressor="xzcat --" ;;
zstd) compressor="zstd -d -c" ;;
esac
$compressor "$1" | bsdcpio -it
exit 0