compile_generic() {
local RET
- [ "$#" -lt '2' ] && gen_die "compile_generic(): improper usage"
+ [ "$#" -lt '2' ] &&
+ gen_die 'compile_generic(): improper usage!'
if [ "${2}" = 'kernel' ] || [ "${2}" = 'runtask' ]
then
${MAKE} ${MAKEOPTS} ${1} >> ${DEBUGFILE} 2>&1
RET=$?
fi
- [ "${RET}" -ne '0' ] && gen_die "Failed to compile the \"${1}\" target..."
+ [ "${RET}" -ne '0' ] &&
+ gen_die "Failed to compile the \"${1}\" target..."
unset MAKE
if [ "${2}" = 'kernel' ]
extract_dietlibc_bincache() {
cd "${TEMP}"
rm -rf "${TEMP}/diet" > /dev/null
- tar -jxpf "${DIETLIBC_BINCACHE}" || gen_die "Could not extract dietlibc bincache!"
- [ ! -d "${TEMP}/diet" ] && gen_die "${TEMP}/diet directory not found!"
+ tar -jxpf "${DIETLIBC_BINCACHE}" ||
+ gen_die 'Could not extract dietlibc bincache!'
+ [ ! -d "${TEMP}/diet" ] &&
+ gen_die "${TEMP}/diet directory not found!"
cd - > /dev/null
}
}
compile_kernel() {
- [ "${KERNEL_MAKE}" = '' ] && gen_die "KERNEL_MAKE undefined - I don't know how to compile a kernel for this arch!"
+ [ "${KERNEL_MAKE}" = '' ] &&
+ gen_die "KERNEL_MAKE undefined - I don't know how to compile a kernel for this arch!"
cd ${KERNEL_DIR}
print_info 1 " >> Compiling ${KV} ${KERNEL_MAKE_DIRECTIVE/_install/ [ install ]/}..."
compile_generic "${KERNEL_MAKE_DIRECTIVE}" kernel
fi
if ! isTrue "${CMD_NOINSTALL}"
then
- cp "${KERNEL_BINARY}" "/boot/kernel-${KV}" || gen_die 'Could not copy the kernel binary to /boot!'
- cp "System.map" "/boot/System.map-${KV}" || gen_die 'Could not copy System.map to /boot!'
+ cp "${KERNEL_BINARY}" "/boot/kernel-${KV}" ||
+ gen_die 'Could not copy the kernel binary to /boot!'
+ cp "System.map" "/boot/System.map-${KV}" ||
+ gen_die 'Could not copy System.map to /boot!'
else
- cp "${KERNEL_BINARY}" "${TEMP}/kernel-${KV}" || gen_die "Could not copy the kernel binary to ${TEMP}!"
- cp "System.map" "${TEMP}/System.map-${KV}" || gen_die "Could not copy System.map to ${TEMP}!"
+ cp "${KERNEL_BINARY}" "${TEMP}/kernel-${KV}" ||
+ gen_die "Could not copy the kernel binary to ${TEMP}!"
+ cp "System.map" "${TEMP}/System.map-${KV}" ||
+ gen_die "Could not copy System.map to ${TEMP}!"
fi
}
compile_busybox() {
if [ ! -f "${BUSYBOX_BINCACHE}" ]
then
- [ -f "${BUSYBOX_SRCTAR}" ] || gen_die "Could not find busybox source tarball: ${BUSYBOX_SRCTAR}!"
- [ -f "${BUSYBOX_CONFIG}" ] || gen_die "Cound not find busybox config file: ${BUSYBOX_CONFIG}!"
+ [ -f "${BUSYBOX_SRCTAR}" ] ||
+ gen_die "Could not find busybox source tarball: ${BUSYBOX_SRCTAR}!"
+ [ -f "${BUSYBOX_CONFIG}" ] ||
+ gen_die "Cound not find busybox config file: ${BUSYBOX_CONFIG}!"
cd "${TEMP}"
rm -rf ${BUSYBOX_DIR} > /dev/null
- tar -jxpf ${BUSYBOX_SRCTAR} || gen_die 'Could not extract busybox source tarball!'
- [ -d "${BUSYBOX_DIR}" ] || gen_die 'Busybox directory ${BUSYBOX_DIR} is invalid!'
+ tar -jxpf ${BUSYBOX_SRCTAR} ||
+ gen_die 'Could not extract busybox source tarball!'
+ [ -d "${BUSYBOX_DIR}" ] ||
+ gen_die 'Busybox directory ${BUSYBOX_DIR} is invalid!'
cp "${BUSYBOX_CONFIG}" "${BUSYBOX_DIR}/.config"
cd "${BUSYBOX_DIR}"
# Busybox and dietlibc don't play nice right now
# UTILS_CC="${OLD_CC}"
# fi
print_info 1 'busybox: >> Copying to cache...'
- [ -f "${TEMP}/${BUSYBOX_DIR}/busybox" ] || gen_die 'Busybox executable does not exist!'
- strip "${TEMP}/${BUSYBOX_DIR}/busybox" || gen_die 'Could not strip busybox binary!'
- bzip2 "${TEMP}/${BUSYBOX_DIR}/busybox" || gen_die 'bzip2 compression of busybox failed!'
- mv "${TEMP}/${BUSYBOX_DIR}/busybox.bz2" "${BUSYBOX_BINCACHE}" || gen_die 'Could not copy the busybox binary to package directory, does the directory exist?'
+ [ -f "${TEMP}/${BUSYBOX_DIR}/busybox" ] ||
+ gen_die 'Busybox executable does not exist!'
+ strip "${TEMP}/${BUSYBOX_DIR}/busybox" ||
+ gen_die 'Could not strip busybox binary!'
+ bzip2 "${TEMP}/${BUSYBOX_DIR}/busybox" ||
+ gen_die 'bzip2 compression of busybox failed!'
+ mv "${TEMP}/${BUSYBOX_DIR}/busybox.bz2" "${BUSYBOX_BINCACHE}" ||
+ gen_die 'Could not copy the busybox binary to the package directory, does the directory exist?'
cd "${TEMP}"
rm -rf "${BUSYBOX_DIR}" > /dev/null
local ARGS
if [ ! -f "${MODUTILS_BINCACHE}" ]
then
- [ ! -f "${MODUTILS_SRCTAR}" ] && gen_die "Could not find modutils source tarball: ${MODUTILS_SRCTAR}!"
+ [ ! -f "${MODUTILS_SRCTAR}" ] &&
+ gen_die "Could not find modutils source tarball: ${MODUTILS_SRCTAR}!"
cd "${TEMP}"
rm -rf "${MODUTILS_DIR}"
tar -jxpf "${MODUTILS_SRCTAR}"
- [ ! -d "${MODUTILS_DIR}" ] && gen_die "Modutils directory ${MODUTILS_DIR} invalid!"
+ [ ! -d "${MODUTILS_DIR}" ] &&
+ gen_die "Modutils directory ${MODUTILS_DIR} invalid!"
cd "${MODUTILS_DIR}"
print_info 1 "modutils: >> Configuring..."
export_utils_args
export ARCH=${ARCH}
- ./configure --disable-combined --enable-insmod-static >> ${DEBUGFILE} 2>&1 || gen_die 'Configuring modutils failed!'
+ ./configure --disable-combined --enable-insmod-static >> ${DEBUGFILE} 2>&1 ||
+ gen_die 'Configuring modutils failed!'
unset_utils_args
print_info 1 'modutils: >> Compiling...'
fi
print_info 1 'modutils: >> Copying to cache...'
- [ -f "${TEMP}/${MODUTILS_DIR}/insmod/insmod.static" ] || gen_die "insmod.static does not exist after the compilation of modutils!"
- strip "${TEMP}/${MODUTILS_DIR}/insmod/insmod.static" || gen_die 'Could not strip insmod.static!'
- bzip2 "${TEMP}/${MODUTILS_DIR}/insmod/insmod.static" || gen_die 'Compression of insmod.static failed!'
- mv "${TEMP}/${MODUTILS_DIR}/insmod/insmod.static.bz2" "${MODUTILS_BINCACHE}" || gen_die 'Could not move the compressed insmod binary to the package cache!'
+ [ -f "${TEMP}/${MODUTILS_DIR}/insmod/insmod.static" ] ||
+ gen_die 'insmod.static does not exist after the compilation of modutils!'
+ strip "${TEMP}/${MODUTILS_DIR}/insmod/insmod.static" ||
+ gen_die 'Could not strip insmod.static!'
+ bzip2 "${TEMP}/${MODUTILS_DIR}/insmod/insmod.static" ||
+ gen_die 'Compression of insmod.static failed!'
+ mv "${TEMP}/${MODUTILS_DIR}/insmod/insmod.static.bz2" "${MODUTILS_BINCACHE}" ||
+ gen_die 'Could not move the compressed insmod binary to the package cache!'
cd "${TEMP}"
rm -rf "${MODULE_INIT_TOOLS_DIR}" > /dev/null
local ARGS
if [ ! -f "${MODULE_INIT_TOOLS_BINCACHE}" ]
then
- [ ! -f "${MODULE_INIT_TOOLS_SRCTAR}" ] && gen_die "Could not find module-init-tools source tarball: ${MODULE_INIT_TOOLS_SRCTAR}"
+ [ ! -f "${MODULE_INIT_TOOLS_SRCTAR}" ] &&
+ gen_die "Could not find module-init-tools source tarball: ${MODULE_INIT_TOOLS_SRCTAR}"
cd "${TEMP}"
rm -rf "${MODULE_INIT_TOOLS_DIR}"
tar -jxpf "${MODULE_INIT_TOOLS_SRCTAR}"
- [ ! -d "${MODULE_INIT_TOOLS_DIR}" ] && gen_die "Module-init-tools directory ${MODULE_INIT_TOOLS_DIR} invalid"
+ [ ! -d "${MODULE_INIT_TOOLS_DIR}" ] &&
+ gen_die "Module-init-tools directory ${MODULE_INIT_TOOLS_DIR} is invalid"
cd "${MODULE_INIT_TOOLS_DIR}"
print_info 1 'module-init-tools: >> Configuring'
fi
export_utils_args
- ./configure >> ${DEBUGFILE} 2>&1 || gen_die 'Configure of module-init-tools failed!'
+ ./configure >> ${DEBUGFILE} 2>&1 ||
+ gen_die 'Configure of module-init-tools failed!'
unset_utils_args
print_info 1 ' >> Compiling...'
compile_generic "all" utils
fi
print_info 1 ' >> Copying to cache...'
- [ -f "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static" ] || gen_die 'insmod.static does not exist after the compilation of module-init-tools!'
- strip "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static" || gen_die 'Could not strip insmod.static!'
- bzip2 "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static" || gen_die 'Compression of insmod.static failed!'
- [ -f "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static.bz2" ] || gen_die 'Could not find compressed insmod.static.bz2 binary!'
- mv "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static.bz2" "${MODULE_INIT_TOOLS_BINCACHE}" || gen_die 'Could not move the compressed insmod binary to the package cache!'
+ [ -f "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static" ] ||
+ gen_die 'insmod.static does not exist after the compilation of module-init-tools!'
+ strip "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static" ||
+ gen_die 'Could not strip insmod.static!'
+ bzip2 "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static" ||
+ gen_die 'Compression of insmod.static failed!'
+ [ -f "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static.bz2" ] ||
+ gen_die 'Could not find compressed insmod.static.bz2 binary!'
+ mv "${TEMP}/${MODULE_INIT_TOOLS_DIR}/insmod.static.bz2" "${MODULE_INIT_TOOLS_BINCACHE}" ||
+ gen_die 'Could not move the compressed insmod binary to the package cache!'
cd "${TEMP}"
rm -rf "${MODULE_INIT_TOOLS_DIR}" > /dev/null
local ARGS
if [ ! -f "${DEVFSD_BINCACHE}" -o ! -f "${DEVFSD_CONF_BINCACHE}" ]
then
- [ ! -f "${DEVFSD_SRCTAR}" ] && gen_die "Could not find devfsd source tarball: ${DEVFSD_SRCTAR}"
+ [ ! -f "${DEVFSD_SRCTAR}" ] &&
+ gen_die "Could not find devfsd source tarball: ${DEVFSD_SRCTAR}"
cd "${TEMP}"
rm -rf "${DEVFSD_DIR}"
tar -jxpf "${DEVFSD_SRCTAR}"
- [ ! -d "${DEVFSD_DIR}" ] && gen_die "Devfsd directory ${DEVFSD_DIR} invalid"
+ [ ! -d "${DEVFSD_DIR}" ] &&
+ gen_die "Devfsd directory ${DEVFSD_DIR} invalid"
cd "${DEVFSD_DIR}"
if [ "${USE_DIETLIBC}" -eq '1' ]
[ -f "${TEMP}/${DEVFSD_DIR}/devfsd.bz2" ] || gen_die 'Could not find compressed devfsd.bz2 binary!'
mv "${TEMP}/${DEVFSD_DIR}/devfsd.bz2" "${DEVFSD_BINCACHE}" || gen_die 'Could not move compressed binary to the package cache!'
- [ -f "${TEMP}/${DEVFSD_DIR}/devfsd.conf" ] || gen_die 'devfsd.conf does not exist after the compilation of devfsd!'
- bzip2 "${TEMP}/${DEVFSD_DIR}/devfsd.conf" || gen_die 'Compression of devfsd.conf failed!'
- mv "${TEMP}/${DEVFSD_DIR}/devfsd.conf.bz2" "${DEVFSD_CONF_BINCACHE}" || gen_die 'Could not move the compressed configuration to the package cache!'
+# [ -f "${TEMP}/${DEVFSD_DIR}/devfsd.conf" ] || gen_die 'devfsd.conf does not exist after the compilation of devfsd!'
+# bzip2 "${TEMP}/${DEVFSD_DIR}/devfsd.conf" || gen_die 'Compression of devfsd.conf failed!'
+# mv "${TEMP}/${DEVFSD_DIR}/devfsd.conf.bz2" "${DEVFSD_CONF_BINCACHE}" || gen_die 'Could not move the compressed configuration to the package cache!'
cd "${TEMP}"
rm -rf "${DEVFSD_DIR}" > /dev/null
if [ "${BUILD_DIETLIBC}" -eq '1' ]
then
- [ -f "${DIETLIBC_SRCTAR}" ] || gen_die "Could not find dietlibc source tarball: ${DIETLIBC_SRCTAR}"
+ [ -f "${DIETLIBC_SRCTAR}" ] ||
+ gen_die "Could not find dietlibc source tarball: ${DIETLIBC_SRCTAR}"
cd "${TEMP}"
rm -rf "${DIETLIBC_DIR}" > /dev/null
- tar -jxpf ${DIETLIBC_SRCTAR} || gen_die "Could not extract dietlibc source tarball"
- [ -d "${DIETLIBC_DIR}" ] || gen_die "Dietlibc directory ${DIETLIBC_DIR} is invalid!"
+ tar -jxpf "${DIETLIBC_SRCTAR}" ||
+ gen_die 'Could not extract dietlibc source tarball'
+ [ -d "${DIETLIBC_DIR}" ] ||
+ gen_die "Dietlibc directory ${DIETLIBC_DIR} is invalid!"
cd "${DIETLIBC_DIR}"
print_info 1 "dietlibc: >> Compiling..."
compile_generic "prefix=${TEMP}/diet" utils
compile_generic "prefix=${TEMP}/diet install" utils
print_info 1 " >> Copying to bincache..."
cd ${TEMP}
- tar -jcpf "${DIETLIBC_BINCACHE}" diet || gen_die "Could not tar up the dietlibc binary!"
- [ -f "${DIETLIBC_BINCACHE}" ] || gen_die 'Dietlibc cache not created!'
+ tar -jcpf "${DIETLIBC_BINCACHE}" diet ||
+ gen_die 'Could not tar up the dietlibc binary!'
+ [ -f "${DIETLIBC_BINCACHE}" ] ||
+ gen_die 'Dietlibc cache not created!'
echo "${TEMP}" > "${DIETLIBC_BINCACHE_TEMP}"
cd "${TEMP}"
rm -rf "${TEMP}/diet" > /dev/null
fi
}
+
+compile_udev() {
+ if [ ! -f "${UDEV_BINCACHE}" ]
+ then
+ cd "${TEMP}"
+ rm -rf "${UDEV_DIR}" udev
+ [ ! -f "${UDEV_SRCTAR}" ] &&
+ gen_die "Could not find udev tarball: ${UDEV_SRCTAR}"
+ tar -jxpf "${UDEV_SRCTAR}" ||
+ gen_die 'Could not extract udev tarball'
+ [ ! -d "${UDEV_DIR}" ] &&
+ gen_die "Udev tarball ${UDEV_SRCTAR} is invalid"
+
+ cd "${UDEV_DIR}"
+ print_info 1 'udev: >> Compiling...'
+ ln -snf "${KERNEL_DIR}" klibc/linux ||
+ gen_die "Could not link to ${KERNEL_DIR}"
+ compile_generic 'USE_KLIBC=true USE_LOG=false DEBUG=false udevdir=/dev all etc/udev/udev.conf' utils
+ strip udev || gen_die 'Failed to strip the udev binary!'
+
+ print_info 1 ' >> Installing...'
+ install -d "${TEMP}/udev/etc/udev" "${TEMP}/udev/sbin" ||
+ gen_die 'Could not create directory hierarchy'
+ install -m 0755 udev "${TEMP}/udev/sbin" ||
+ gen_die 'Could not install udev binary'
+ install -m 0644 etc/udev/udev.conf "etc/udev/udev.rules" \
+ "etc/udev/udev.permissions" "${TEMP}/udev/etc/udev" ||
+ gen_die 'Could not install udev configuration'
+
+ cd "${TEMP}/udev"
+ print_info 1 ' >> Copying to bincache...'
+ tar -cjf "${UDEV_BINCACHE}" * ||
+ gen_die 'Could not create binary cache'
+
+ cd "${TEMP}"
+ rm -rf "${UDEV_DIR}" udev
+ fi
+}
+
create_initrd_loop() {
local inodes
[ "$#" -ne '1' ] && gen_die 'create_initrd_loop(): Not enough arguments!'
- mkdir -p ${TEMP}/initrd-mount || gen_die 'Could not create loopback mount directory!'
- dd if=/dev/zero of=${TEMP}/initrd-${KV} bs=1k count=${1} >> "${DEBUGFILE}" 2>&1 || gen_die "Could not zero initrd-${KV}"
- mke2fs -F -N500 -q "${TEMP}/initrd-${KV}" >> "${DEBUGFILE}" 2>&1 || gen_die "Could not format initrd-${KV}!"
- mount -t ext2 -o loop "${TEMP}/initrd-${KV}" "${TEMP}/initrd-mount" >> "${DEBUGFILE}" 2>&1 || gen_die 'Could not mount the initrd filesystem!'
+ mkdir -p ${TEMP}/initrd-mount ||
+ gen_die 'Could not create loopback mount directory!'
+ dd if=/dev/zero of=${TEMP}/initrd-${KV} bs=1k count=${1} >> "${DEBUGFILE}" 2>&1 ||
+ gen_die "Could not zero initrd-${KV}"
+ mke2fs -F -N500 -q "${TEMP}/initrd-${KV}" >> "${DEBUGFILE}" 2>&1 ||
+ gen_die "Could not format initrd-${KV}!"
+ mount -t ext2 -o loop "${TEMP}/initrd-${KV}" "${TEMP}/initrd-mount" >> "${DEBUGFILE}" 2>&1 ||
+ gen_die 'Could not mount the initrd filesystem!'
}
create_initrd_unmount_loop()
{
cd ${TEMP}
- umount "${TEMP}/initrd-mount" || gen_die 'Could not unmount initrd system!'
+ umount "${TEMP}/initrd-mount" ||
+ gen_die 'Could not unmount initrd system!'
}
move_initrd_to_loop()
mkdir -p ${TEMP}/initrd-temp/usr
mkdir -p ${TEMP}/initrd-temp/proc
mkdir -p ${TEMP}/initrd-temp/temp
+ mkdir -p ${TEMP}/initrd-temp/sys
mkdir -p ${TEMP}/initrd-temp/.initrd
ln -s bin ${TEMP}/initrd-temp/sbin
ln -s ../bin ${TEMP}/initrd-temp/usr/bin
ln -s ../bin ${TEMP}/initrd-temp/usr/sbin
+
echo "/dev/ram0 / ext2 defaults" > ${TEMP}/initrd-temp/etc/fstab
echo "proc /proc proc defaults 0 0" >> ${TEMP}/initrd-temp/etc/fstab
MAKEDEV std
MAKEDEV console
- cp "${BUSYBOX_BINCACHE}" "${TEMP}/initrd-temp/bin/busybox.bz2" || gen_die "could not copy busybox from bincache"
- bunzip2 "${TEMP}/initrd-temp/bin/busybox.bz2" || gen_die "could not uncompress busybox"
+ cp "${BUSYBOX_BINCACHE}" "${TEMP}/initrd-temp/bin/busybox.bz2" ||
+ gen_die 'Could not copy busybox from bincache!'
+ bunzip2 "${TEMP}/initrd-temp/bin/busybox.bz2" ||
+ gen_die 'Could not uncompress busybox!'
chmod +x "${TEMP}/initrd-temp/bin/busybox"
if [ "${NOINITRDMODULES}" = '' ]
then
if [ "${PAT}" -gt "4" ]
then
- cp "${MODULE_INIT_TOOLS_BINCACHE}" "${TEMP}/initrd-temp/bin/insmod.static.bz2" || gen_die "could not copy insmod.static from bincache"
+ cp "${MODULE_INIT_TOOLS_BINCACHE}" "${TEMP}/initrd-temp/bin/insmod.static.bz2" ||
+ gen_die 'Could not copy insmod.static from bincache!'
else
- cp "${MODUTILS_BINCACHE}" "${TEMP}/initrd-temp/bin/insmod.static.bz2" || gen_die "could not copy insmod.static from bincache"
+ cp "${MODUTILS_BINCACHE}" "${TEMP}/initrd-temp/bin/insmod.static.bz2" ||
+ gen_die 'Could not copy insmod.static from bincache'
fi
- bunzip2 "${TEMP}/initrd-temp/bin/insmod.static.bz2" || gen_die "could not uncompress insmod.static"
+ bunzip2 "${TEMP}/initrd-temp/bin/insmod.static.bz2" ||
+ gen_die 'Could not uncompress insmod.static!'
mv "${TEMP}/initrd-temp/bin/insmod.static" "${TEMP}/initrd-temp/bin/insmod"
chmod +x "${TEMP}/initrd-temp/bin/insmod"
fi
bunzip2 "${TEMP}/initrd-temp/bin/devfsd.bz2" || gen_die "could not uncompress devfsd"
chmod +x "${TEMP}/initrd-temp/bin/devfsd"
+ [ "${CMD_UDEV}" ] && { tar -jxpf "${UDEV_BINCACHE}" -C "${TEMP}/initrd-temp" ||
+ gen_die "Could not extract udev binary cache!"; }
+
# We make our own devfsd.conf these days, the default one doesn't work with the stripped
# down devfsd we use with dietlibc
-# cp "${DEVFSD_CONF_BINCACHE}" "${TEMP}/initrd-temp/etc/devfsd.conf.bz2" || gen_die "could not copy devfsd.conf from bincache"
-# bunzip2 "${TEMP}/initrd-temp/etc/devfsd.conf.bz2" || gen_die "could not uncompress devfsd.conf"
+# cp "${DEVFSD_CONF_BINCACHE}" "${TEMP}/initrd-temp/etc/devfsd.conf.bz2" ||
+# gen_die "could not copy devfsd.conf from bincache"
+# bunzip2 "${TEMP}/initrd-temp/etc/devfsd.conf.bz2" ||
+# gen_die "could not uncompress devfsd.conf"
# LVM2
if [ -e '/sbin/vgscan.static' -a -e '/sbin/vgchange.static' ]
then
if [ "${CMD_NOLVM2}" -ne '1' ]
then
- cp /sbin/vgscan.static "${TEMP}/initrd-temp/bin/vgscan" || gen_die 'Could not copy over vgscan!'
- cp /sbin/vgchange.static "${TEMP}/initrd-temp/bin/vgchange" || gen_die 'Could not copy over vgchange!'
+ cp /sbin/vgscan.static "${TEMP}/initrd-temp/bin/vgscan" ||
+ gen_die 'Could not copy over vgscan!'
+ cp /sbin/vgchange.static "${TEMP}/initrd-temp/bin/vgchange" ||
+ gen_die 'Could not copy over vgchange!'
fi
# else
# print_warning 1 "initrd: No LVM2 static binaries found; skipping support..."
pivot_root ps awk pwd rm rmdir rmmod sed sh sleep tar test touch true umount uname \
xargs yes zcat chmod chown cut kill killall; do
rm -f ${TEMP}/initrd-temp/bin/$i > /dev/null
- ln ${TEMP}/initrd-temp/bin/busybox ${TEMP}/initrd-temp/bin/$i || gen_die "Busybox error: could not link ${i}!"
+ ln ${TEMP}/initrd-temp/bin/busybox ${TEMP}/initrd-temp/bin/$i ||
+ gen_die "Busybox error: could not link ${i}!"
done
}
do
if [ -f "/etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-${bootRes}.cfg" ]
then
- /sbin/splash -s -f /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-${bootRes}.cfg >> ${TEMP}/initrd-${KV} || gen_die "Error: could not copy ${bootRes} bootsplash!"
+ /sbin/splash -s -f /etc/bootsplash/${BOOTSPLASH_THEME}/config/bootsplash-${bootRes}.cfg >> ${TEMP}/initrd-${KV} ||
+ gen_die "Error: could not copy ${bootRes} bootsplash!"
else
print_warning 1 "splash: Did not find a bootsplash for the ${bootRes} resolution..."
fi
fi
if ! isTrue "${CMD_NOINSTALL}"
then
- cp ${TEMP}/initrd-${KV} /boot/initrd-${KV} || gen_die 'Could not copy the initrd to /boot!'
+ cp ${TEMP}/initrd-${KV} /boot/initrd-${KV} ||
+ gen_die 'Could not copy the initrd to /boot!'
fi
}