Make sure that /sbin/unionfs is +x

cleanup-cruft
agaffney 16 years ago
parent 4123ac396c
commit b116df3c98

@ -2,6 +2,10 @@
# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2 # Distributed under the GPL v2
13 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> defaults/linuxrc,
gen_initramfs.sh:
Make sure that /sbin/unionfs is +x
13 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh, 13 Nov 2008; Andrew Gaffney <agaffney@gentoo.org> gen_compile.sh,
gen_initramfs.sh: gen_initramfs.sh:
Correct unionfs-fuse bincache path and clean up debugging code Correct unionfs-fuse bincache path and clean up debugging code

@ -187,7 +187,7 @@ do
if [ ! -x /sbin/unionfs ] if [ ! -x /sbin/unionfs ]
then then
USE_UNIONFS_NORMAL=0 USE_UNIONFS_NORMAL=0
bad_msg 'Unionctl not found: aborting use of unionfs!' bad_msg 'unionfs binary not found: aborting use of unionfs!'
else else
USE_UNIONFS_NORMAL=1 USE_UNIONFS_NORMAL=1
fi fi

@ -94,6 +94,7 @@ append_unionfs_fuse() {
mkdir -p "${TEMP}/initramfs-unionfs-fuse-temp/sbin/" mkdir -p "${TEMP}/initramfs-unionfs-fuse-temp/sbin/"
bzip2 -dc "${UNIONFS_FUSE_BINCACHE}" > "${TEMP}/initramfs-unionfs-fuse-temp/sbin/unionfs" || bzip2 -dc "${UNIONFS_FUSE_BINCACHE}" > "${TEMP}/initramfs-unionfs-fuse-temp/sbin/unionfs" ||
gen_die 'Could not extract unionfs-fuse binary cache!' gen_die 'Could not extract unionfs-fuse binary cache!'
chmod a+x "${TEMP}/initramfs-unionfs-fuse-temp/sbin/unionfs"
cd "${TEMP}/initramfs-unionfs-fuse-temp/" cd "${TEMP}/initramfs-unionfs-fuse-temp/"
find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}" find . -print | cpio ${CPIO_ARGS} --append -F "${CPIO}"
rm -rf "${TEMP}/initramfs-unionfs-fuse-temp" > /dev/null rm -rf "${TEMP}/initramfs-unionfs-fuse-temp" > /dev/null

Loading…
Cancel
Save