vmklive: avoid rebuilding the initramfs, it's xz compressed already.
This commit is contained in:
parent
deba6e1f6b
commit
8beee2c33e
srcpkgs/vmklive
@ -170,7 +170,6 @@ fi
|
|||||||
#
|
#
|
||||||
# The following vars can be overwritten by the config file.
|
# The following vars can be overwritten by the config file.
|
||||||
#
|
#
|
||||||
PACKAGE_REPO="/storage/xbps/packages"
|
|
||||||
SYSLINUX_DATADIR="/usr/share/syslinux"
|
SYSLINUX_DATADIR="/usr/share/syslinux"
|
||||||
XBPS_REPO_CMD="xbps-repo"
|
XBPS_REPO_CMD="xbps-repo"
|
||||||
XBPS_BIN_CMD="xbps-bin"
|
XBPS_BIN_CMD="xbps-bin"
|
||||||
@ -184,9 +183,9 @@ fi
|
|||||||
. $CONFIG_FILE
|
. $CONFIG_FILE
|
||||||
|
|
||||||
if [ -z "$PACKAGE_LIST" ]; then
|
if [ -z "$PACKAGE_LIST" ]; then
|
||||||
PACKAGE_LIST="base-system xbps-casper"
|
PACKAGE_LIST="xbps-casper base-system"
|
||||||
else
|
else
|
||||||
PACKAGE_LIST="base-system xbps-casper $PACKAGE_LIST"
|
PACKAGE_LIST="xbps-casper base-system $PACKAGE_LIST"
|
||||||
fi
|
fi
|
||||||
BUILDDIR=$(mktemp --tmpdir="$(pwd)" -d) || exit 1
|
BUILDDIR=$(mktemp --tmpdir="$(pwd)" -d) || exit 1
|
||||||
BUILDDIR=$(readlink -f $BUILDDIR)
|
BUILDDIR=$(readlink -f $BUILDDIR)
|
||||||
@ -243,11 +242,7 @@ fi
|
|||||||
#
|
#
|
||||||
# Rebuild the initramfs image with LZMA compression.
|
# Rebuild the initramfs image with LZMA compression.
|
||||||
#
|
#
|
||||||
info_msg "Rebuilding and copying initramfs image..."
|
info_msg "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 $?
|
|
||||||
|
|
||||||
cp -f "${INITRD_IMG:-$ROOTFS/boot/initrd.img-${kver}}" \
|
cp -f "${INITRD_IMG:-$ROOTFS/boot/initrd.img-${kver}}" \
|
||||||
"$BUILDDIR/casper/initrd.lz" || error_out $?
|
"$BUILDDIR/casper/initrd.lz" || error_out $?
|
||||||
mkdir -p "$ROOTFS"/cow
|
mkdir -p "$ROOTFS"/cow
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Template file for 'vmklive'
|
# Template file for 'vmklive'
|
||||||
pkgname=vmklive
|
pkgname=vmklive
|
||||||
version=0.4.2
|
version=0.5.0
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="Void GNU/Linux live image maker"
|
short_desc="Void GNU/Linux live image maker"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
@ -26,5 +26,5 @@ do_build()
|
|||||||
|
|
||||||
do_install()
|
do_install()
|
||||||
{
|
{
|
||||||
install -Dm755 ${pkgname}.sh ${DESTDIR}/usr/sbin/vmklive
|
vinstall ${pkgname}.sh 755 usr/sbin vmklive
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user