diff options
| author | Josh Ackley <jackley798@gmail.com> | 2021-10-05 04:56:04 -0700 |
|---|---|---|
| committer | XECDesign <XECDesign@users.noreply.github.com> | 2021-10-05 13:53:08 +0100 |
| commit | a8596e0d894315396d62d3546ce96cd1e7ceaf75 (patch) | |
| tree | 2d383129af99456c839d08198ab1af1b69d6730f /scripts | |
| parent | 2f12cf985a88977957e2743601246d2a07aeb660 (diff) | |
Use sync mode when running 'kpartx -a'
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/qcow2_handling | 6 |
1 files changed, 3 insertions, 3 deletions
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}" |
