diff options
author | Juan RP <xtraeme@gmail.com> | 2014-01-22 10:15:17 +0100 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-01-22 10:15:17 +0100 |
commit | 9fd80621ada4079adc81d363e40ce71c0dbe9dc9 (patch) | |
tree | b0053fb622a2f0e85943c69db728f7626267aa24 | |
parent | 1ee561f98db2f08fb5e7479443eec05ac121fb5a (diff) | |
download | hrmpf-9fd80621ada4079adc81d363e40ce71c0dbe9dc9.tar.gz hrmpf-9fd80621ada4079adc81d363e40ce71c0dbe9dc9.tar.xz hrmpf-9fd80621ada4079adc81d363e40ce71c0dbe9dc9.zip |
mkrootfs: added -R to set the xbps repository.
-rw-r--r-- | mkrootfs.sh.in | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index 1cdf33e..5e26a86 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -43,7 +43,7 @@ die() { } usage() { - echo "Usage: $PROGNAME [-k xbps-keys-dir] [-m rpi|odroid-u2] [-p 'pkg1 pkg2'] [-V]" + echo "Usage: $PROGNAME [-k xbps-keys-dir] [-m rpi|odroid-u2] [-p 'pkg1 pkg2'] [-R xbps-repo-url] [-V]" } mount_pseudofs() { @@ -89,12 +89,13 @@ register_binfmt() { # # main() # -while getopts "k:m:hp:V" opt; do +while getopts "hk:m:p:R:V" opt; do case $opt in + h) usage; exit 0;; k) KEYSDIR="$OPTARG";; m) TARGET_ARCH="$OPTARG";; p) EXTRA_PKGS="$OPTARG";; - h) usage; exit 0;; + R) XBPS_REPO="$OPTARG";; V) echo "$PROGNAME @@MKLIVE_VERSION@@"; exit 0;; esac done @@ -135,7 +136,7 @@ fi mkdir -p $rootfs/var/db/xbps/keys cp $KEYSDIR/${VOIDRSAPUBKEY}.plist $rootfs/var/db/xbps/keys -run_cmd "xbps-query -R -ppkgver $PKGBASE" +run_cmd "xbps-query -R ${XBPS_REPO} -ppkgver $PKGBASE" chmod 755 $rootfs @@ -146,7 +147,7 @@ mount_pseudofs # # Install base-system to the rootfs directory. # -run_cmd_target "xbps-install -S -r $rootfs -y ${PKGS}" +run_cmd_target "xbps-install -S -R ${XBPS_REPO} -r $rootfs -y ${PKGS}" # Enable en_US.UTF-8 locale and generate it into the target rootfs. LOCALE=en_US.UTF-8 |