20 lines
449 B
Bash
Executable file
20 lines
449 B
Bash
Executable file
#!/bin/sh
|
|
|
|
case $1 in
|
|
prereqs)
|
|
##
|
|
# GETS EXECUTED WHEN BUILDING INITRAMFS
|
|
##
|
|
. /usr/share/initramfs-tools/hook-functions
|
|
rm -f "$DESTDIR/sbin/mke2fs"
|
|
mkdir -p "$DESTDIR/lib/x86_64-linux-gnu"
|
|
cp /lib/x86_64-linux-gnu/libnss_dns* "$DESTDIR/lib/x86_64-linux-gnu"
|
|
copy_exec /sbin/e2fsck
|
|
copy_exec /sbin/mke2fs
|
|
copy_exec /sbin/sfdisk
|
|
copy_exec /usr/bin/aria2c
|
|
copy_file cert /etc/ssl/certs/ca-certificates.crt
|
|
exit 0
|
|
;;
|
|
esac
|
|
|