diff --git a/mk_pbp_img b/mk_pbp_img index 9896d68..c5b6267 100755 --- a/mk_pbp_img +++ b/mk_pbp_img @@ -68,17 +68,6 @@ build_img() { sudo xz --decompress --stdout "$img.xz" > "$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"p1 "$TMP_DIR_MOUNT"/boot