Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2021-12-01 18:08:26 +0200
committernl6720 <nl6720@gmail.com>2023-06-15 14:19:34 +0300
commitbf79d7be9ec51c061b5fcca3b36a7da3423fc154 (patch)
tree796e08289c6c90e3608053c1084f1d968940611d /archiso/mkarchiso
parent1d1f9a0fc8feec8c917f36af3ddd28d20431e3db (diff)
mkarchiso: prevent interference from xorriso startup files
Options set in xorriso startup files (~/.xorrisorc) could interfere with the xorriso command run by mkarchiso. For example, if ~root/.xorrisorc contains -dummy on, then the ISO file will be empty. Pass -no_rc as the first option to xorriso to prevent interference and unintended behavior. Fixes #153.
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso7
1 files changed, 6 insertions, 1 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 3961f15..470a960 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -1501,11 +1501,16 @@ _build_iso_image() {
[[ -d "${out_dir}" ]] || install -d -- "${out_dir}"
+ # Do not read xorriso startup files to prevent interference and unintended behavior.
+ # For it to work, -no_rc must be the first argument passed to xorriso.
+ xorriso_options=('-no_rc')
+
+
if [[ "${quiet}" == "y" ]]; then
# The when xorriso is run in mkisofs compatibility mode (xorrisofs), the mkisofs option -quiet is interpreted
# too late (e.g. messages about SOURCE_DATE_EPOCH still get shown).
# Instead use native xorriso option to silence the output.
- xorriso_options=('-report_about' 'SORRY' "${xorriso_options[@]}")
+ xorriso_options+=('-report_about' 'SORRY')
fi
# Add required xorrisofs options for each boot mode