You are not logged in.

#1 2024-02-24 02:00:10

Xray_OS
Member
Registered: 2023-10-14
Posts: 2

mkarchiso error, failing to set permissions, .zshrc

I created a script "zshrc_transfer.sh", to copy my custom .zshrc stiings to the .zshrc located in skel, i created the script because can't put my custom .zshrc file directly in the skel folder, because it complains about the file already existing.

so this is what is inside my script:
#!/bin/zsh
# Copy your custom .zshrc settings to /etc/skel/.zshrc
cp ~/.zshrc_xray /etc/skel/.zshrc

this is the error am getting when i action mkarchiso:
[mkarchiso] INFO: Copying custom pacman.conf to work directory...
[mkarchiso] INFO: Using pacman CacheDir: /var/cache/pacman/pkg/
[mkarchiso] INFO: Copying custom airootfs files...
[mkarchiso] ERROR: Failed to set permissions on '/home/angel/XRAY-ZEN-BUILD/x86_64/airootfsusr/local/bin/zshrc_transfer'. Outside of valid path.
Moving pkglist.x86_64.txt
########################
cp: cannot stat '/home/angel/XRAY-ZEN-BUILD/iso/arch/pkglist.x86_64.txt': No such file or directory

And this are my permissions for my .sh files that i have in my build folder located in: usr/local/bin:
❯ ls -l
total 60
-rw-r--r-- 1 angel angel 1044 feb 23 20:29 automount_drives.sh
-rw-r--r-- 1 angel angel  615 ene 24 15:04 choose-mirror
lrwxrwxrwx 1 angel angel    8 feb 23 04:51 fix-key -> fix-keys
lrwxrwxrwx 1 angel angel    8 feb 23 04:51 fixkey -> fix-keys
-rw-r--r-- 1 angel angel 3830 feb  9 14:21 fix-keys
lrwxrwxrwx 1 angel angel    8 feb 23 04:51 fixkeys -> fix-keys
-rw-r--r-- 1 angel angel  121 ene 24 15:04 Installation_guide
-rw-r--r-- 1 angel angel 7019 ene 24 15:04 livecd-sound
-rw-r--r-- 1 angel angel  160 nov 29 16:49 remove-after-installation
-rw-r--r-- 1 angel angel  257 nov 29 16:49 skel
-rwxr-xr-x 1 angel angel  823 nov 29 16:49 ucode
-rw-r--r-- 1 angel angel 1046 feb  6 14:23 xray-displaymanager-check
-rw-r--r-- 1 angel angel  485 feb  6 14:24 xray-make-a-pure-arch
-rwxr-xr-x 1 angel angel  100 feb 23 21:29 zshrc_transfer.sh

Last edited by Xray_OS (2024-02-24 02:01:15)

Offline

#2 2024-02-24 06:25:01

duaner
Member
From: Oklahoma City
Registered: 2018-10-13
Posts: 35
Website

Re: mkarchiso error, failing to set permissions, .zshrc

I notice that the error specifies "airootfsusr". Is that a bug in the error message or did you leave out a "/" in the file name? Is "zshrc_transfer" a link to the script file? Should it be "zshrc_transfer.sh"?

Offline

Board footer

Powered by FluxBB