You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quote variables in destructive commands (#9400 P0) (#9401)
* extensions: image-output-abl: quote variables in destructive commands (#9400 P0)
Quote all variable expansions passed to rm, mount, umount, losetup,
mkfs, sed -i, cp, truncate, blkid, gzip, cat, e2fsck, resize2fs, and
source to prevent word splitting. Replace `[ ! -z ]` with `[[ -n ]]`.
* extensions: uwe5622-allwinner: quote variables in destructive commands (#9400 P0)
Quote $SDCARD in chroot calls and $destination, $SRC, ${ARCH} in
cp, mkdir, and install commands to prevent word splitting.
* extensions: cloud-init: quote variables in destructive commands (#9400 P0)
Quote ${config_src}, $config_dst, ${defaults_src}, $defaults_dst in cp
commands and ${SDCARD} in rm -f commands to prevent word splitting.
* extensions: lvm: quote variables in destructive commands (#9400 P0)
Quote ${SDCARD}.raw, ${rootdevice}, ${LVM_VG_NAME}, ${volsize} in
parted, pvcreate, vgcreate, lvcreate, e2label, blkid, and vgchange
commands to prevent word splitting.
* extensions: allwinner-kernel-bump: quote variables in destructive commands (#9400 P0)
Quote ${patch_dir_base}, ${patch_dir_megous}, ${patch_dir_tmp},
${kernel_work_dir}, ${bundle_file}, ${PREV_KERNEL_PATCH_DIR} in rm,
cp, mv, mkdir, git, grep, sed -i, and cat commands. Fix unquoted
array expansion: ${megous_trees[@]} → "${megous_trees[@]}".
* lib: partitioning: quote variables in destructive commands (#9400 P0)
Quote $SDCARD, $MOUNT, $rootdevice, ${LOOP}p${rootpart},
$bootscript_dst and other variables in rm, mount, umount, mkdir,
sed -i, echo >>, mkfs, blkid, grep, and cat commands to prevent
word splitting. Replace `[ -z ]` with `[[ -z ]]` on line guarding
boot script output. Heredoc blocks inside call_extension_method
are left unchanged.
* extensions: image-output-abl: remove redundant cat before recovery image build
The cat command creating Image.gz-${dtb_name} (where dtb_name holds the last
loop value) was unnecessary: Image.gz-${ABL_DTB_LIST[0]} is already created
by the for loop, and mkbootimg for the recovery image uses exactly that file.
Fix per #9401 (comment)
0 commit comments