You are not logged in.
Pages: 1
Hi,
I'm building a customized arch iso image.
Since moving to a new computer with my scripts I get a permission error:
==> Image generation successful
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 20351 100 20351 0 0 11090 0 0:00:01 0:00:01 --:--:-- 11096
[mkarchiso] INFO: Configuration settings
[mkarchiso] INFO: Command: run
[mkarchiso] INFO: Architecture: x86_64
[mkarchiso] INFO: Working directory: work/x86_64
[mkarchiso] INFO: Installation directory: arch
[mkarchiso] INFO: Run command: /root/customize_airootfs.sh
chroot: failed to run command '/root/customize_airootfs.sh': Permission denied
I (think I) followed the recommendation on the Archiso page that some steps have to be done as root to prepare the scripts. However, obviously something is wrong. I'm not an expert on such things and thus I lack the knowledge of how to figure out where/what the permission error is (beyond that it has to do with chroot/airootfs.sh).
Any help on how to approach this problem is appreciated.
Thanks,
Torsten
Offline
How are the file permissions actually?
Offline
the build script:
-rwxr-xr-x 1 myusername users 11476 Nov 17 11:36 build.sh
customize_airoorfs.sh
-rw-r--r-- 1 myusernam users 3483 Nov 17 11:36 customize_airootfs.sh
and the actual script that calls the build.sh script:
-rw-r--r-- 1 myusername users 9773 Nov 12 22:16 prepare_archiso.sh
Does this difference "-rwxr-xr-x" "-rw-r--r--" have anything to do with it?
Last edited by psyxcience (2015-11-17 12:38:50)
Offline
Does this difference "-rwxr-xr-x" "-rw-r--r--" have anything to do with it?
x is the execute permission and must be set to execute scripts.
See https://wiki.archlinux.org/index.php/Fi … sions_mean
Add x attribute to your scripts using chmod command.
Offline
Working. "chmod +x file" did it.
Thanks for the fast and straight forward help.
Last edited by psyxcience (2015-11-17 14:57:11)
Offline
Please mark this thread as [SOLVED].
Offline
Pages: 1