vmklive: avoid rebuilding the initramfs, it's xz compressed already.

This commit is contained in:
Juan RP 2011-07-22 09:22:47 +02:00
parent deba6e1f6b
commit 8beee2c33e
2 changed files with 5 additions and 10 deletions

View file

@ -170,7 +170,6 @@ fi
#
# The following vars can be overwritten by the config file.
#
PACKAGE_REPO="/storage/xbps/packages"
SYSLINUX_DATADIR="/usr/share/syslinux"
XBPS_REPO_CMD="xbps-repo"
XBPS_BIN_CMD="xbps-bin"
@ -184,9 +183,9 @@ fi
. $CONFIG_FILE
if [ -z "$PACKAGE_LIST" ]; then
PACKAGE_LIST="base-system xbps-casper"
PACKAGE_LIST="xbps-casper base-system"
else
PACKAGE_LIST="base-system xbps-casper $PACKAGE_LIST"
PACKAGE_LIST="xbps-casper base-system $PACKAGE_LIST"
fi
BUILDDIR=$(mktemp --tmpdir="$(pwd)" -d) || exit 1
BUILDDIR=$(readlink -f $BUILDDIR)
@ -243,11 +242,7 @@ fi
#
# Rebuild the initramfs image with LZMA compression.
#
info_msg "Rebuilding and copying initramfs image..."
sed -i -e "s|COMPRESS=gzip|COMPRESS=lzma|" \
"$ROOTFS"/etc/initramfs-tools/initramfs.conf
${XBPS_BIN_CMD} -r "$ROOTFS" -f reconfigure kernel || error_out $?
info_msg "Copying initramfs image..."
cp -f "${INITRD_IMG:-$ROOTFS/boot/initrd.img-${kver}}" \
"$BUILDDIR/casper/initrd.lz" || error_out $?
mkdir -p "$ROOTFS"/cow

View file

@ -1,6 +1,6 @@
# Template file for 'vmklive'
pkgname=vmklive
version=0.4.2
version=0.5.0
build_style=custom-install
short_desc="Void GNU/Linux live image maker"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -26,5 +26,5 @@ do_build()
do_install()
{
install -Dm755 ${pkgname}.sh ${DESTDIR}/usr/sbin/vmklive
vinstall ${pkgname}.sh 755 usr/sbin vmklive
}