You are not logged in.

#1 2015-11-17 11:14:52

psyxcience
Member
Registered: 2015-11-13
Posts: 3

Archiso Permission denied

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

#2 2015-11-17 11:56:26

c0mm0ner
Member
Registered: 2015-11-09
Posts: 93

Re: Archiso Permission denied

How are the file permissions actually?

Offline

#3 2015-11-17 12:33:38

psyxcience
Member
Registered: 2015-11-13
Posts: 3

Re: Archiso Permission denied

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

#4 2015-11-17 14:00:41

mkey
Member
Registered: 2015-02-09
Posts: 38

Re: Archiso Permission denied

psyxcience wrote:

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

#5 2015-11-17 14:56:42

psyxcience
Member
Registered: 2015-11-13
Posts: 3

Re: Archiso Permission denied

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

#6 2015-11-17 15:04:22

mkey
Member
Registered: 2015-02-09
Posts: 38

Re: Archiso Permission denied

Please mark this thread as [SOLVED].

Offline

Board footer

Powered by FluxBB