summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2021-10-05 17:43:06 +0100
committerSerge Schneider <serge@raspberrypi.com>2021-10-05 17:43:06 +0100
commit2e3603d228fa6acd509dbb9467dfa228dd724766 (patch)
tree298df13120ad9fcf7cf32979cb41270341727c96 /scripts
parent59717675900cfe478e176d9d05b5614cc1934670 (diff)
parent5a4b7ec0679dc85efc5abfa65a9a33a3e3cb1273 (diff)
Merge branch 'master' into arm64
Diffstat (limited to 'scripts')
-rw-r--r--scripts/common1
-rw-r--r--scripts/qcow2_handling6
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/common b/scripts/common
index 2733fd8..690403f 100644
--- a/scripts/common
+++ b/scripts/common
@@ -17,6 +17,7 @@ bootstrap(){
BOOTSTRAP_ARGS+=(--include gnupg)
BOOTSTRAP_ARGS+=(--components "main,contrib,non-free")
#BOOTSTRAP_ARGS+=(--keyring "${STAGE_DIR}/files/raspberrypi.gpg")
+ BOOTSTRAP_ARGS+=(--exclude=info)
BOOTSTRAP_ARGS+=("$@")
printf -v BOOTSTRAP_STR '%q ' "${BOOTSTRAP_ARGS[@]}"
diff --git a/scripts/qcow2_handling b/scripts/qcow2_handling
index f722937..6b2a56b 100644
--- a/scripts/qcow2_handling
+++ b/scripts/qcow2_handling
@@ -36,7 +36,7 @@ connect_blkdev() {
init_nbd
qemu-nbd --discard=unmap -c $NBD_DEV "$1"
sync
- kpartx -a $NBD_DEV
+ kpartx -as $NBD_DEV
sync
CURRENT_IMAGE="$1"
}
@@ -108,7 +108,7 @@ load_qimage() {
254MiB,,83;
EOF
sync
- kpartx -a $NBD_DEV
+ kpartx -as $NBD_DEV
mkdosfs -n boot -F 32 -v $MAP_BOOT_DEV
mkfs.ext4 -L rootfs -O "^huge_file,^metadata_csum,^64bit" $MAP_ROOT_DEV
sync
@@ -123,7 +123,7 @@ EOF
sync
qemu-nbd --discard=unmap -c $NBD_DEV image-${STAGE}.qcow2
sync
- kpartx -a $NBD_DEV
+ kpartx -as $NBD_DEV
fi
mount -v -t ext4 $MAP_ROOT_DEV "${ROOTFS_DIR}"