You are not logged in.

#1 2013-08-12 08:58:38

williewonka
Member
Registered: 2013-06-06
Posts: 17

archiso error

so im building a custom iso using archiso. im currently in the buildphase and already solved some small problems (such as adding packages from aur). however i now have a bit of a weird error. after all the packages are downloaded and installed into root-image i get the following error:

[mkarchiso] INFO: Configuration settings
[mkarchiso] INFO:                   Command:   run
[mkarchiso] INFO:              Architecture:   i686
[mkarchiso] INFO:         Working directory:   work/i686
[mkarchiso] INFO:    Installation directory:   arch
[mkarchiso] INFO:               Run command:   /root/customize_root_image.sh

Installation finished. No error reported.
Operation failed: Invalid argument

i google the warning and found out that it has to do with grub config. i commented out the grub config lines in the customize_root_image.sh and then the warning goes away but not the operation failed error. Also i thought that customize_root_image.sh is run at install of the iso, not when building the iso so thats why i put the grub commands in, but apperently im wrong?
this is my customize_root_image.sh file:

#!/bin/bash

set -e -u

grub-install --target=i386-pc --recheck /dev/sda
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

usermod -s /usr/bin/zsh root
cp -aT /etc/skel/ /root/

mkdir -p /home/frank/.config/openbox
cp /etc/xdg/openbox/* /home/frank/.config/openbox
mkdir -p /usr/share/lxde/pcmanfm
cp -a /etc/xdg/pcmanfm/default/pcmanfm.conf /usr/share/lxde/pcmanfm/pcmanfm.conf
chown -R frank /home/frank/

systemctl enable pacman-init.service choose-mirror.service wice wicd slim

anyone knows what im doing wrong? i didnt put the useradd in because i copied the shadows users and group file to the root-image

Last edited by williewonka (2013-08-14 14:48:15)

Offline

#2 2013-08-14 00:53:05

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: archiso error

Why would you enable multi-user.target and slim? Aren't those in direct conflict? That is, one is boot-to-CLI and the other requires X. Or have I misunderstood? (I don't know about what you're doing - just that command looked odd so maybe it makes sense in this special case?)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-08-14 14:47:48

williewonka
Member
Registered: 2013-06-06
Posts: 17

Re: archiso error

cfr wrote:

Why would you enable multi-user.target and slim? Aren't those in direct conflict? That is, one is boot-to-CLI and the other requires X. Or have I misunderstood? (I don't know about what you're doing - just that command looked odd so maybe it makes sense in this special case?)

hmm i think your right, that sounds logical. removing that doesnt solve the problem unfortunatly

Offline

#4 2013-08-14 19:47:49

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: archiso error

williewonka wrote:
#!/bin/bash

set -e -u

sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
locale-gen

ln -sf /usr/share/zoneinfo/UTC /etc/localtime

usermod -s /usr/bin/zsh root
cp -aT /etc/skel/ /root/

sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist

systemctl enable multi-user.target pacman-init.service choose-mirror.service

anyone knows what im doing wrong? i didnt put the useradd in because i copied the shadows users and group file to the root-image

Yeah, the script needs to be something like, I edited your quote.

you need to create these things in you skelleton...

grub-install --target=i386-pc --recheck /dev/sda
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

mkdir -p /home/frank/.config/openbox
cp /etc/xdg/openbox/* /home/frank/.config/openbox
mkdir -p /usr/share/lxde/pcmanfm
cp -a /etc/xdg/pcmanfm/default/pcmanfm.conf /usr/share/lxde/pcmanfm/pcmanfm.conf
chown -R frank /home/frank/

Offline

#5 2013-08-15 07:11:55

williewonka
Member
Registered: 2013-06-06
Posts: 17

Re: archiso error

qinohe wrote:
williewonka wrote:
#!/bin/bash

set -e -u

sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
locale-gen

ln -sf /usr/share/zoneinfo/UTC /etc/localtime

usermod -s /usr/bin/zsh root
cp -aT /etc/skel/ /root/

sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist

systemctl enable multi-user.target pacman-init.service choose-mirror.service

anyone knows what im doing wrong? i didnt put the useradd in because i copied the shadows users and group file to the root-image

Yeah, the script needs to be something like, I edited your quote.

you need to create these things in you skelleton...

grub-install --target=i386-pc --recheck /dev/sda
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

mkdir -p /home/frank/.config/openbox
cp /etc/xdg/openbox/* /home/frank/.config/openbox
mkdir -p /usr/share/lxde/pcmanfm
cp -a /etc/xdg/pcmanfm/default/pcmanfm.conf /usr/share/lxde/pcmanfm/pcmanfm.conf
chown -R frank /home/frank/

ok i will remake it with only the basic things and all the rest in the skeleton altough i did the locale in the skeleton where you say i need to put it in the script. als should chown not be in the script?

Offline

#6 2013-08-15 09:39:16

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: archiso error

So, why would you want to chown? No need to worry about that.
You just pull in the 'things' you want, in the skeleton, and put them at the right place in the 'tree'
If you configured all the rest in the way it supposed to be, your ISO will build.
I assumed you build releng.

Offline

#7 2013-08-15 09:46:37

williewonka
Member
Registered: 2013-06-06
Posts: 17

Re: archiso error

qinohe wrote:

So, why would you want to chown? No need to worry about that.
You just pull in the 'things' you want, in the skeleton, and put them at the right place in the 'tree'
If you configured all the rest in the way it supposed to be, your ISO will build.
I assumed you build releng.

yes i build releng. what is the absolutly bare basic for the script if you put everthing in your 'tree'?

Offline

#8 2013-08-15 10:00:48

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: archiso error

williewonka wrote:

yes i build releng. what is the absolutly bare basic for the script if you put everthing in your 'tree'?

For which one?, there are some, but again, i assume the customize_root_image.sh you refer to. I think it is as bare as it can get.
Maybe you could strip the symlink, but I did not try it.
May I ask what you are trying to build, or it's purpose ?

Offline

#9 2013-08-15 10:26:47

williewonka
Member
Registered: 2013-06-06
Posts: 17

Re: archiso error

qinohe wrote:
williewonka wrote:

yes i build releng. what is the absolutly bare basic for the script if you put everthing in your 'tree'?

For which one?, there are some, but again, i assume the customize_root_image.sh you refer to. I think it is as bare as it can get.
Maybe you could strip the symlink, but I did not try it.
May I ask what you are trying to build, or it's purpose ?

im building an iso for myself with all the packages and themes that i use. its just for myself and a couple of friends. so i put everything in the skeleton but my question is, apart from the systemctl is there anything else that has to be in the script in order for it to function.

EDIT:
ok so i tried again but now i put the openbox stuff in the skeleton. time and locales were already in the skeleton. my customize_root script:

#!/bin/bash

set -e -u

usermod -s /usr/bin/zsh root
cp -aT /etc/skel/ /root/

sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist

systemctl enable pacman-init.service choose-mirror.service wicd slim

and now i still get the same error.

Last edited by williewonka (2013-08-15 11:35:38)

Offline

#10 2013-08-15 13:04:10

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: archiso error

The script does work here.
Try, and remove wicd and slim from your customize_root_image.sh.
Like this

systemctl enable multi-user.target pacman-init.service choose-mirror.service

You need to enable them in the skeleton too....
Build again, are you succeeding?

edit; or change into,

systemctl enable graphcal-user.target pacman-init.service choose-mirror.service


Like cfr already mentioned.

Last edited by qinohe (2013-08-15 13:11:24)

Offline

#11 2013-08-15 13:27:54

williewonka
Member
Registered: 2013-06-06
Posts: 17

Re: archiso error

qinohe wrote:

The script does work here.
Try, and remove wicd and slim from your customize_root_image.sh.
Like this

systemctl enable multi-user.target pacman-init.service choose-mirror.service

You need to enable them in the skeleton too....
Build again, are you succeeding?

edit; or change into,

systemctl enable graphcal-user.target pacman-init.service choose-mirror.service


Like cfr already mentioned.

i think you mean

systemctl enable graphical-user.target pacman-init.service choose-mirror.service

?
now it gives me the error "no such file or directory" at the same place as before

EDIT: nvm i use the multiuser and now it goes further

EDIT2: ok so now i get an error further down the line when its installing packages to x86 and now it says it cant find the steam and skype packages. however when i do pacman -S steam skype it finds both those packages. how is this possible?

Last edited by williewonka (2013-08-15 13:31:52)

Offline

#12 2013-08-15 13:33:23

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: archiso error

williewonka wrote:

i think you mean

systemctl enable graphical-user.target pacman-init.service choose-mirror.service

?
now it gives me the error "no such file or directory" at the same place as before

EDIT: nvm i use the multiuser and now it builds.

what is different from your and my line?
Anyway, use 'multiser' if you use 'startx'
use 'graphical' if you use 'slim'

EDIT2: ok so now i get an error further down the line when its installing packages to x86 and now it says it cant find the steam and skype packages. however when i do pacman -S steam skype it finds both those packages. how is this possible?

You, need to create the mutilib repo yourself.

Last edited by qinohe (2013-08-15 13:36:29)

Offline

#13 2013-08-15 15:58:59

williewonka
Member
Registered: 2013-06-06
Posts: 17

Re: archiso error

qinohe wrote:
williewonka wrote:

i think you mean

systemctl enable graphical-user.target pacman-init.service choose-mirror.service

?
now it gives me the error "no such file or directory" at the same place as before

EDIT: nvm i use the multiuser and now it builds.

what is different from your and my line?
Anyway, use 'multiser' if you use 'startx'
use 'graphical' if you use 'slim'

EDIT2: ok so now i get an error further down the line when its installing packages to x86 and now it says it cant find the steam and skype packages. however when i do pacman -S steam skype it finds both those packages. how is this possible?

You, need to create the mutilib repo yourself.

ow really? didnt know that. thats kinda annoying.

Offline

#14 2013-08-15 16:33:06

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: archiso error

As far as I know, yes, any other repo than specified already needs to be created.
Why annoying?, just create the repo, add what you want, and add multilib to  pacman.conf, and you should be good to go;)
I never tried building 'Multilib', but I just did, and all went well as far as I can see.

edit;fyi, I did build Skype & Slim, with multilib enabled, about 88M was added to the build, Skype works, Slim, have not tried.

Last edited by qinohe (2013-08-15 17:19:55)

Offline

#15 2013-08-15 21:13:40

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: archiso error

graphical,target, do you mean? I don't think there is a graphical-user.target - probably why it can't find it. In any case, graphical is default so systemctl enable <display-manager-you-prefer>.service should work. At least, unless building the iso is different?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#16 2013-08-15 23:06:07

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: archiso error

cfr wrote:

graphical,target, do you mean? I don't think there is a graphical-user.target - probably why it can't find it. In any case, graphical is default so systemctl enable <display-manager-you-prefer>.service should work. At least, unless building the iso is different?

Yes, graphical.target I mean, didn't use it before on a ISO, but II just went ahead to enable 'slim.service', which was a piece of cake, created a symlink for slim.service and it works.
You don't need to do anything else, systemd handles the rest, I am impressed.

williewonka, did you get any further?

Last edited by qinohe (2013-08-15 23:09:59)

Offline

#17 2013-08-16 11:19:18

williewonka
Member
Registered: 2013-06-06
Posts: 17

Re: archiso error

qinohe wrote:
cfr wrote:

graphical,target, do you mean? I don't think there is a graphical-user.target - probably why it can't find it. In any case, graphical is default so systemctl enable <display-manager-you-prefer>.service should work. At least, unless building the iso is different?

Yes, graphical.target I mean, didn't use it before on a ISO, but II just went ahead to enable 'slim.service', which was a piece of cake, created a symlink for slim.service and it works.
You don't need to do anything else, systemd handles the rest, I am impressed.

williewonka, did you get any further?

i had some other stuff to do yesterday, im going to try your suggestions this afternoon. so i need to do wicd.service and slim.service? thats really nice

Offline

#18 2013-08-16 11:27:54

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,601

Re: archiso error

williewonka wrote:

so i need to do wicd.service and slim.service? thats really nice

Well, not exactly. I created the slim.service as a symlink, on the original place in the tree.
Of course, everything else you want to configure about slim, you do that in your skelleton

Offline

Board footer

Powered by FluxBB