Skip to content

Commit

Permalink
Fixed DragonFly 6 config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ladar committed Oct 27, 2023
1 parent 537a4c7 commit e8a755a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
15 changes: 10 additions & 5 deletions http/generic.dragonflybsd.vagrant.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ EOF
[ ! -d /mnt/usr/local/etc/pkg/repos/ ] && mkdir -p /mnt/usr/local/etc/pkg/repos/
cat <<-EOF > /mnt/usr/local/etc/pkg/repos/df-latest.conf
Avalon: {
url : http://mirror-master.dragonflybsd.org/dports/\${ABI}/LATEST,
url : https://mirror-master.dragonflybsd.org/dports/\${ABI}/LATEST,
mirror_type : NONE,
signature_type : NONE,
pubkey : NONE,
Expand All @@ -118,10 +118,15 @@ Avalon: {
}
EOF

ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 chroot /mnt pkg install gsed
ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 chroot /mnt pkg install curl
ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 chroot /mnt pkg install sudo
ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 chroot /mnt pkg install bash
# The pkg command requires a valid /dev/null path, so we fake it with an
# empty file.
touch /mnt/dev/null
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg update'
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg install pkg'
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg update'
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg install gsed'
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg install bash'
rm -f /mnt/dev/null

# Setup bash a valid login shell.
chroot /mnt ln /usr/local/bin/bash /usr/bin/bash
Expand Down
15 changes: 10 additions & 5 deletions http/generic.dragonflybsd6.vagrant.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ EOF
[ ! -d /mnt/usr/local/etc/pkg/repos/ ] && mkdir -p /mnt/usr/local/etc/pkg/repos/
cat <<-EOF > /mnt/usr/local/etc/pkg/repos/df-latest.conf
Avalon: {
url : http://mirror-master.dragonflybsd.org/dports/\${ABI}/LATEST,
url : https://mirror-master.dragonflybsd.org/dports/\${ABI}/LATEST,
mirror_type : NONE,
signature_type : NONE,
pubkey : NONE,
Expand All @@ -118,10 +118,15 @@ Avalon: {
}
EOF

ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 chroot /mnt pkg install gsed
ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 chroot /mnt pkg install curl
ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 chroot /mnt pkg install sudo
ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 chroot /mnt pkg install bash
# The pkg command requires a valid /dev/null path, so we fake it with an
# empty file.
touch /mnt/dev/null
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg update'
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg install --yes pkg'
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg update'
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg install --yes gsed'
chroot /mnt /bin/sh -c 'ASSUME_ALWAYS_YES=yes FETCH_RETRY=5 pkg install --yes bash'
rm -f /mnt/dev/null

# Setup bash a valid login shell.
chroot /mnt ln /usr/local/bin/bash /usr/bin/bash
Expand Down

0 comments on commit e8a755a

Please sign in to comment.