updated mkinitramfs and lsinitramfs #5

Merged
wt merged 1 commits from fix-for-busybox-sh into main 2025-01-10 12:32:01 +07:00
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -12,5 +12,6 @@ case $INITRAMFSCOMP in
zstd) compressor="zstd -d -c" ;;
esac
$compressor "$1" | bsdcpio -it
exit 0
CPIO=$(command -v bsdcpio) || CPIO=$(command -v cpio)
$compressor "$1" | $CPIO -it
exit 0
+1 -1
View File
@@ -24,7 +24,7 @@ BBLUE="\033[1;34m"
#--- create default directories function ---
create_dirs() {
mkdir -p $initdir/{bin,dev,mnt,proc,root,sys,run}
mkdir -p $initdir/bin $initdir/dev $initdir/mnt $initdir/proc $initdir/root $initdir/sys $initdir/run
}
#-------------------------------------------