logo

make-initrd

Unnamed repository; edit this file 'description' to name the repository.
commit: 5bae91eb040537e1c7b79f83d9697beaf0444b03
parent: 5f1a9eaf1e5b3ec654905e7149fe1f8ff7d01159
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 22 Mar 2019 10:49:42 +0100

make-initrd: Remove arc and unset -v

Diffstat:

Mmake-initrd.bash7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/make-initrd.bash b/make-initrd.bash @@ -3,17 +3,14 @@ # Distributed under the terms of the ISC license kv=${1:-$(uname -r)} -arc=$(getconf LONG_BIT) out_base=initramfs-${kv} elves="lvm busybox blkid lsblk cryptsetup mksh zfs zpool" WORKDIR="$(pwd)" test -e $out_base && rm -fr $out_base mkdir -p $out_base && pushd $out_base -mkdir -p {usr/,}{bin,lib$arc} dev proc sys newroot etc -ln -s lib{$arc,} +mkdir -p usr/bin bin lib dev proc sys newroot etc ln -s /proc/mounts etc/mtab -pushd usr && ln -s lib{$arc,} && popd if test -d /lib/modules/$kv then @@ -60,5 +57,3 @@ if find . -print0 | cpio --null -ov --format=newc | xz -9 --check=crc32 > ../${o fi popd - -unset -v arc kv out_base elves