diff options
Diffstat (limited to 'make')
-rwxr-xr-x | make | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -37,16 +37,8 @@ file /lib/firmware/rtl_nic/rtl8168h-2.fw /lib/firmware/rtl_nic/rtl8168h-2.fw 064 file /lib64/libnss_files.so.2 /lib64/libnss_files.so.2 0755 0 0 file /root/.ssh/authorized_keys $scriptdir/authorized_keys 0600 0 0 file /unlock $scriptdir/unlock 0755 0 0 -file /usr/share/alsa/cards/HDA-Intel.conf /usr/share/alsa/cards/HDA-Intel.conf 0644 0 0 -file /usr/share/alsa/cards/USB-Audio.conf /usr/share/alsa/cards/USB-Audio.conf 0644 0 0 -file /usr/share/sounds/ding.wav $scriptdir/ding.wav 0644 0 0 EOF - find /usr/share/alsa \ - \( -name cards -o -name speaker-test -o -name ucm -o -name topology \) -prune -o \ - -type f -print | while read f; do - printf 'file %s %s 0644 0 0\n' "$f" "$f" - done - for cmd in cryptsetup e2fsck aplay amixer dropbear; do + for cmd in cryptsetup e2fsck dropbear; do cmdp="$(command -v "$cmd")" # builtin if [ "$cmd" = "$cmdp" ]; then @@ -77,13 +69,15 @@ gen_dir_ents() { } gen_depfile() { - echo "initramfs.img: make" >&3 + deps='make' while read type target source args; do printf '%s %s %s %s\n' "$type" "$target" "$source" "$args" if [ "$type" = file ]; then - echo "initramfs.img: $source" >&3 + deps="$deps $source" + echo "$source:" >&3 fi done + echo "initramfs.img: $deps" >&3 } gen_cpio_list | gen_dir_ents | sort -u | gen_depfile 3>initramfs.d | "${scriptdir}"/gen_init_cpio -t 0 - | xz --x86 --lzma2=preset=9e --check=crc32 -c > initramfs.img |