On Thursday, 3 December 2020 03:19:20 EET Marco Obaid via arch-releng wrote: > Greetings, > > After upgrading archiso to 50.1-1, I am running into an issue when building > the Archiso. The build stops at a point when it attempts to set permissions > (see below). The same process works fine in archiso 49-1. "liveruser" > exists in both airootfs/etc/passwd and airootfs/etc/shadow. If I remove the > liveuser entries from the airootfs/etc/passwd and airootfs/etc/shadow, the > build resumes and the iso is built. > > ... > [mkarchiso] INFO: Done! Packages installed successfully. > [mkarchiso] INFO: Copying /etc/skel/* to user homes... > [mkarchiso] ERROR: Failed to set permissions on > 'work/x86_64/airootfs/home/liveuser'. Outside of valid path. > > Any advice on how to overcome this? Reviewing the documentation did not > yield any success. > > profiledef.sh looks like this: > > #!/usr/bin/env bash > # shellcheck disable=SC2034 > > iso_name=arcolinux-dev > iso_label="arcolinux-dev-v21.01.1" > iso_publisher="ArcoLinux <http://www.arcolinux.info>" > iso_application="ArcoLinux Live/Rescue CD" > iso_version="v21.01.1" > install_dir="arch" > bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' > 'uefi-x64.systemd-boot.esp' 'uefi-x64.systemd-boot.eltorito') > arch="x86_64" > pacman_conf="pacman.conf" > airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' > '-Xdict-size' '1M') > file_permissions=( > ["/etc/shadow"]="0:0:400" > ["/root"]="0:0:750" > ["/root/.automated_script.sh"]="0:0:755" > ["/usr/local/bin/choose-mirror"]="0:0:755" > ["/usr/local/bin/Installation_guide"]="0:0:755" > ["/usr/local/bin/livecd-sound"]="0:0:755" > ) > > Thank you in advance for any hints! > > Regards
I think this is because the default work_dir (i.e. "work" in the current directory) is not parsed with realpath. To work around it for now, set the working directory explicitly using mkarchiso -w /path/to/workdir . Most of the time you'll want to set it explicitly to somewhere under /tmp/ anyway.
signature.asc
Description: This is a digitally signed message part.
