remove docker experiment code
This commit is contained in:
parent
e139c7db69
commit
38d9bfb51b
11
mk_pbp_img
11
mk_pbp_img
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user