~comcloudway/builds.sr.ht

ee9e1aa6bdc140ef7f50cbf621af5f13f272b6e6 — Simon Ser 5 years ago 3b53d37
images/freebsd: mount devfs before chrooting

Thsi fixes build failures due to pkg not finding /dev/null. See [1].

[1]: https://github.com/freebsd/pkg/issues/1763#issuecomment-502579057
1 files changed, 4 insertions(+), 0 deletions(-)

M images/freebsd/genimg
M images/freebsd/genimg => images/freebsd/genimg +4 -0
@@ 16,6 16,7 @@ done

cleanup() {
	sync || true
	umount /mnt/dev || true
	umount /mnt || true
	mdconfig -du md0 || true
}


@@ 32,6 33,9 @@ newfs -U /dev/md0p2

mount /dev/md0p2 /mnt

mkdir -p /mnt/dev
mount -t devfs devfs /mnt/dev

for f in $dist_files
do
	tar -C /mnt -xJf "$dist_dir/$f"