fixes
This commit is contained in:
parent
5df6801525
commit
dc0f99c5ff
14
generate
14
generate
@ -27,7 +27,7 @@ check_currentdir() {
|
|||||||
# check needed files
|
# check needed files
|
||||||
check_requirements() {
|
check_requirements() {
|
||||||
# TODO use system busybox
|
# TODO use system busybox
|
||||||
for f in ./init ./busybox $binaries; do
|
for f in ./init ./busybox; do
|
||||||
[ -e "$f" ] || panic "$f doesn't exists"
|
[ -e "$f" ] || panic "$f doesn't exists"
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ create_symlinks() {
|
|||||||
ln -s usr/bin bin
|
ln -s usr/bin bin
|
||||||
ln -s usr/bin sbin
|
ln -s usr/bin sbin
|
||||||
ln -s ../run var/run
|
ln -s ../run var/run
|
||||||
cd "$tmpdir/usr"
|
cd "${tmpdir}/usr"
|
||||||
ln -s bin sbin
|
ln -s bin sbin
|
||||||
ln -s lib lib64
|
ln -s lib lib64
|
||||||
} )
|
} )
|
||||||
@ -69,15 +69,15 @@ create_symlinks() {
|
|||||||
|
|
||||||
# install mdev
|
# install mdev
|
||||||
use_mdev() {
|
use_mdev() {
|
||||||
install -m644 mdev.conf -t "$tmpdir/etc"
|
install -m644 mdev.conf -t "${tmpdir}/etc"
|
||||||
install -Dm755 storage-device -t "$tmpdir/lib/mdev"
|
install -Dm755 storage-device -t "${tmpdir}/lib/mdev"
|
||||||
}
|
}
|
||||||
|
|
||||||
# install mdevd
|
# install mdevd
|
||||||
use_mdevd() {
|
use_mdevd() {
|
||||||
install_binaries mdevd mdevd-coldplug
|
install_binaries mdevd mdevd-coldplug
|
||||||
install -m644 mdev.conf -t "$tmpdir/etc"
|
install -m644 mdev.conf -t "${tmpdir}/etc"
|
||||||
install -Dm755 storage-device -t "$tmpdir/lib/mdev"
|
install -Dm755 storage-device -t "${tmpdir}/lib/mdev"
|
||||||
}
|
}
|
||||||
|
|
||||||
# install udev
|
# install udev
|
||||||
@ -240,7 +240,7 @@ create_initramfs() {
|
|||||||
{
|
{
|
||||||
( cd "$tmpdir" && {
|
( cd "$tmpdir" && {
|
||||||
find . | cpio -oH newc | gzip -9
|
find . | cpio -oH newc | gzip -9
|
||||||
} ) > "./initramfs-${kernel}.img.gz"
|
} ) > "${script_dir}/initramfs-${kernel}.img.gz"
|
||||||
} >/dev/null 2>&1
|
} >/dev/null 2>&1
|
||||||
|
|
||||||
[ "$?" = 0 ] || panic "failed to generate initramfs image"
|
[ "$?" = 0 ] || panic "failed to generate initramfs image"
|
||||||
|
Loading…
Reference in New Issue
Block a user