diff options
author | Serge Schneider <[email protected]> | 2018-03-02 20:08:24 +0000 |
---|---|---|
committer | Serge Schneider <[email protected]> | 2018-03-13 12:50:50 +0000 |
commit | ff2d5edee18efbb7ba2498e5bf8d308c186c4866 (patch) | |
tree | 380dd4fb8138fcbcf374839a880deb3191ca0725 /export-image/03-set-partuuid/00-run.sh | |
parent | 56da271499afe7ae8e35a8fd30f04135283b2fb0 (diff) |
shellcheck
Diffstat (limited to 'export-image/03-set-partuuid/00-run.sh')
-rwxr-xr-x | export-image/03-set-partuuid/00-run.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/export-image/03-set-partuuid/00-run.sh b/export-image/03-set-partuuid/00-run.sh index 4b18405..29edc67 100755 --- a/export-image/03-set-partuuid/00-run.sh +++ b/export-image/03-set-partuuid/00-run.sh @@ -2,12 +2,12 @@ IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img" -IMGID="$(dd if=${IMG_FILE} skip=440 bs=1 count=4 2>/dev/null | xxd -e | cut -f 2 -d' ')" +IMGID="$(dd if="${IMG_FILE}" skip=440 bs=1 count=4 2>/dev/null | xxd -e | cut -f 2 -d' ')" BOOT_PARTUUID="${IMGID}-01" ROOT_PARTUUID="${IMGID}-02" -sed -i "s/BOOTDEV/PARTUUID=${BOOT_PARTUUID}/" ${ROOTFS_DIR}/etc/fstab -sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" ${ROOTFS_DIR}/etc/fstab +sed -i "s/BOOTDEV/PARTUUID=${BOOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab" +sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" "${ROOTFS_DIR}/etc/fstab" -sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" ${ROOTFS_DIR}/boot/cmdline.txt +sed -i "s/ROOTDEV/PARTUUID=${ROOT_PARTUUID}/" "${ROOTFS_DIR}/boot/cmdline.txt" |