From ee9e1aa6bdc140ef7f50cbf621af5f13f272b6e6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 17 Jun 2019 17:11:13 +0000 Subject: [PATCH] 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 --- images/freebsd/genimg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/images/freebsd/genimg b/images/freebsd/genimg index 302edd4..061c73d 100755 --- a/images/freebsd/genimg +++ b/images/freebsd/genimg @@ -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" -- 2.38.5