get rid of gnu ln
This commit is contained in:
parent
69247511e7
commit
6ea379fd89
18
generate
18
generate
@ -33,12 +33,17 @@ for d in dev etc usr/lib usr/bin mnt/root proc root sys; do
|
|||||||
mkdir -p "$tmpdir/$d"
|
mkdir -p "$tmpdir/$d"
|
||||||
done
|
done
|
||||||
|
|
||||||
# make libraries and binaries happy
|
# symlinks
|
||||||
ln -rs "$tmpdir/usr/lib" "$tmpdir/lib"
|
for s in lib lib64 bin sbin; do
|
||||||
ln -rs "$tmpdir/usr/lib" "$tmpdir/lib64"
|
case "$s" in
|
||||||
ln -rs "$tmpdir/usr/lib" "$tmpdir/lib32"
|
lib*)
|
||||||
ln -rs "$tmpdir/usr/bin" "$tmpdir/bin"
|
( cd "$tmpdir" && ln -s "usr/lib" "$s" )
|
||||||
ln -rs "$tmpdir/usr/bin" "$tmpdir/sbin"
|
;;
|
||||||
|
*bin)
|
||||||
|
( cd "$tmpdir" && ln -s "usr/bin" "$s" )
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
# TODO parse fstab | crypttab
|
# TODO parse fstab | crypttab
|
||||||
#while [ "$use_fstab" -eq 1 ] && read fs dir type opts; do thing; done < /etc/fstab
|
#while [ "$use_fstab" -eq 1 ] && read fs dir type opts; do thing; done < /etc/fstab
|
||||||
@ -98,6 +103,7 @@ if ! ( cd "$tmpdir" && find . | cpio --create --verbose --format=newc | gzip --b
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# remove tmpdir
|
||||||
rm -rf "$tmpdir"
|
rm -rf "$tmpdir"
|
||||||
|
|
||||||
echo "done! check out initramfs-$kernel.img.gz"
|
echo "done! check out initramfs-$kernel.img.gz"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user