remove docker experiment code

This commit is contained in:
Sebastian Hugentobler 2021-02-08 16:20:30 +01:00
parent e139c7db69
commit 38d9bfb51b
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0

View File

@ -68,17 +68,6 @@ build_img() {
sudo xz --decompress --stdout "$img.xz" > "$img" sudo xz --decompress --stdout "$img.xz" > "$img"
local loop_dev="$(sudo losetup --show -f -P "$img")" local loop_dev="$(sudo losetup --show -f -P "$img")"
if [ ! -z "$DISCOVER_DEV" ]; then # needed if building inside a docker container
local partitions=$(lsblk --raw --output "MAJ:MIN" --noheadings ${loop_dev} | tail -n +2)
counter=1
for i in $partitions; do
local maj=$(echo $i | cut -d: -f1)
local min=$(echo $i | cut -d: -f2)
if [ ! -e "${loop_dev}p${counter}" ]; then mknod ${loop_dev}p${counter} b $maj $min; fi
counter=$((counter + 1))
done
fi
sudo mount "$loop_dev"p2 "$TMP_DIR_MOUNT" sudo mount "$loop_dev"p2 "$TMP_DIR_MOUNT"
sudo mount "$loop_dev"p1 "$TMP_DIR_MOUNT"/boot sudo mount "$loop_dev"p1 "$TMP_DIR_MOUNT"/boot