vmklive: make it work with any initramfs/kernel version.
This commit is contained in:
parent
020a0532b6
commit
36e5bf1bf4
|
@ -205,16 +205,6 @@ mount_pseudofs
|
||||||
mkdir -p "$ROOTFS/tmp"
|
mkdir -p "$ROOTFS/tmp"
|
||||||
|
|
||||||
if [ -z "$ROOTDIR" ]; then
|
if [ -z "$ROOTDIR" ]; then
|
||||||
#
|
|
||||||
# Register all package repositories in the target rootfs.
|
|
||||||
#
|
|
||||||
xver=$(${XBPS_BIN_CMD} -V|awk '{print $2}')
|
|
||||||
if [ -z "$xver" -o "$xver" = "" ]; then
|
|
||||||
for _repo_ in ${PACKAGE_REPO}; do
|
|
||||||
info_msg "Adding ${_repo_} package repository..."
|
|
||||||
${XBPS_REPO_CMD} -r "$ROOTFS" add "${_repo_}" || error_out $?
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
${XBPS_BIN_CMD} -r "$ROOTFS" -y install ${PACKAGE_LIST} || error_out $?
|
${XBPS_BIN_CMD} -r "$ROOTFS" -y install ${PACKAGE_LIST} || error_out $?
|
||||||
${XBPS_BIN_CMD} -r "$ROOTFS" -y autoupdate || error_out $?
|
${XBPS_BIN_CMD} -r "$ROOTFS" -y autoupdate || error_out $?
|
||||||
${XBPS_BIN_CMD} -r "$ROOTFS" -yp autoremove || error_out $?
|
${XBPS_BIN_CMD} -r "$ROOTFS" -yp autoremove || error_out $?
|
||||||
|
@ -243,16 +233,16 @@ fi
|
||||||
# Rebuild the initramfs image with LZMA compression.
|
# Rebuild the initramfs image with LZMA compression.
|
||||||
#
|
#
|
||||||
info_msg "Copying initramfs image..."
|
info_msg "Copying initramfs image..."
|
||||||
cp -f "${INITRD_IMG:-$ROOTFS/boot/initrd.img-${kver}}" \
|
INITRD_IMAGE=$(echo $ROOTFS/boot/initrd.img-*)
|
||||||
"$BUILDDIR/casper/initrd.lz" || error_out $?
|
cp -f "$INITRD_IMAGE" "$BUILDDIR/casper/initrd.lz" || error_out $?
|
||||||
mkdir -p "$ROOTFS"/cow
|
mkdir -p "$ROOTFS"/cow
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copy the linux image to the target directory.
|
# Copy the linux image to the target directory.
|
||||||
#
|
#
|
||||||
info_msg "Copying kernel image..."
|
info_msg "Copying kernel image..."
|
||||||
cp -f "${KERNEL_IMG:-$ROOTFS/boot/vmlinuz-${kver}}" \
|
KERNEL_IMG=$(echo $ROOTFS/boot/vmlinuz-*)
|
||||||
"$BUILDDIR/casper/vmlinuz" || error_out $?
|
cp -f "$KERNEL_IMG" "$BUILDDIR/casper/vmlinuz" || error_out $?
|
||||||
|
|
||||||
#
|
#
|
||||||
# Remove stuff that uses a lot of space.
|
# Remove stuff that uses a lot of space.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'vmklive'
|
# Template file for 'vmklive'
|
||||||
pkgname=vmklive
|
pkgname=vmklive
|
||||||
version=0.5.0
|
version=0.5.1
|
||||||
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>"
|
||||||
|
|
Loading…
Reference in New Issue