vmklive: do a repo sync before installing, use ./repocache-<arch> as cachedir.
This commit is contained in:
parent
230d365107
commit
b0dd663349
2 changed files with 9 additions and 7 deletions
|
@ -208,8 +208,11 @@ mount_pseudofs
|
|||
mkdir -p "$ROOTFS/tmp"
|
||||
|
||||
if [ -z "$ROOTDIR" ]; then
|
||||
${XBPS_BIN_CMD} -r "$ROOTFS" -y install ${PACKAGE_LIST} || error_out $?
|
||||
${XBPS_BIN_CMD} -r "$ROOTFS" -y autoupdate || error_out $?
|
||||
${XBPS_REPO_CMD} -r "$ROOTFS" sync || error_out $?
|
||||
${XBPS_BIN_CMD} -r "$ROOTFS" -c $(pwd)/repocache-$(uname -m) \
|
||||
-y install ${PACKAGE_LIST} || error_out $?
|
||||
${XBPS_BIN_CMD} -r "$ROOTFS" -c $(pwd)/repocache-$(uname -m) \
|
||||
-y autoupdate || error_out $?
|
||||
${XBPS_BIN_CMD} -r "$ROOTFS" -yp autoremove || error_out $?
|
||||
${XBPS_BIN_CMD} -r "$ROOTFS" -yvp purge all || error_out $?
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'vmklive'
|
||||
pkgname=vmklive
|
||||
version=0.6.1
|
||||
version=0.6.2
|
||||
short_desc="Void GNU/Linux live image maker"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="Public domain"
|
||||
|
@ -12,18 +12,17 @@ long_desc="
|
|||
replaces="xbps-mklive>=0 vanilla-mklive>=0"
|
||||
noextract=yes
|
||||
noarch=yes
|
||||
|
||||
Add_dependency full cdrtools
|
||||
Add_dependency full squashfs-tools
|
||||
Add_dependency full syslinux
|
||||
Add_dependency full initramfs-tools
|
||||
|
||||
do_build()
|
||||
{
|
||||
do_build() {
|
||||
sed "s|@@MKLIVE_VERSION@@|${version}|g" \
|
||||
${FILESDIR}/mklive.sh.in > ${pkgname}.sh
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
do_install() {
|
||||
vinstall ${pkgname}.sh 755 usr/sbin vmklive
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue