Skip to content

Commit

Permalink
move xbps-alternatives to mkhrmpf
Browse files Browse the repository at this point in the history
  • Loading branch information
leahneukirchen committed May 27, 2016
1 parent 19a0f42 commit d67d0a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions mkhrmpf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
-B extra/ipxe.iso \
-B extra/memtest86+-5.01.iso \
-p "$(grep '^[^#].' hrmpf.packages)" \
-A "gawk tnftp inetutils-hostname libressl-netcat dash vim-common" \
-U "spl zfs"
12 changes: 6 additions & 6 deletions mklive.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Usage: $PROGNAME [options]
Options:
-a <xbps-arch> Set XBPS_ARCH (do not use it unless you know what it is)
-A "pkg pkgN" Set xbps-alternatives for packages.
-b <system-pkg> Set an alternative base-system package (defaults to base-system).
-r <repo-url> Use this XBPS repository (may be specified multiple times).
-c <cachedir> Use this XBPS cache directory (/var/cache/xbps if unset).
Expand Down Expand Up @@ -134,11 +135,9 @@ install_packages() {
chroot $ROOTFS env -i xbps-reconfigure -a

xbps-query -r $ROOTFS -l >installed.pkgs
xbps-alternatives -r $ROOTFS -s dash
xbps-alternatives -r $ROOTFS -s inetutils-hostname
xbps-alternatives -r $ROOTFS -s ex-vi
xbps-alternatives -r $ROOTFS -s libressl-netcat
xbps-alternatives -r $ROOTFS -s tnftp
for a in $ALTERNATIVES; do
xbps-alternatives -r $ROOTFS -s $a
done
xbps-alternatives -r $ROOTFS -l >installed.alternatives

if [ "$UNCONF_PACKAGE_LIST" ]; then
Expand Down Expand Up @@ -311,9 +310,10 @@ generate_iso_image() {
#
# main()
#
while getopts "a:B:b:r:c:C:T:Kk:l:i:I:s:S:o:p:U:h" opt; do
while getopts "a:A:B:b:r:c:C:T:Kk:l:i:I:s:S:o:p:U:h" opt; do
case $opt in
a) BASE_ARCH="$OPTARG";;
A) ALTERNATIVES="$OPTARG";;
b) BASE_SYSTEM_PKG="$OPTARG";;
B) BOOT_FILES="$BOOT_FILES $OPTARG";;
r) XBPS_REPOSITORY="--repository=$OPTARG $XBPS_REPOSITORY";;
Expand Down

0 comments on commit d67d0a7

Please sign in to comment.