FS#27913 - Archiso broken by pacman 4.0 signed packages
Attached to Project:
Release Engineering
Opened by Heinrich Siebmanns (Harvey) - Thursday, 12 January 2012, 09:49 GMT
Last edited by Dieter Plaetinck (Dieter_be) - Tuesday, 20 March 2012, 14:08 GMT
Opened by Heinrich Siebmanns (Harvey) - Thursday, 12 January 2012, 09:49 GMT
Last edited by Dieter Plaetinck (Dieter_be) - Tuesday, 20 March 2012, 14:08 GMT
|
Details
I tried to build a custom Arch Linux live media using
archiso. I strictly followed the wiki here:
https://wiki.archlinux.org/index.php/Archiso I get to the point where I should do pacman -Sy devtools libisoburn squashfs-tools and pacman throws this error error: GPGME error: Inappropriate ioctl for device for several times. No joy with alans suggestion here: http://mailman.archlinux.org/pipermail/arch-projects/2011-October/001994.html to do mount --bind /dev/pts "${working_dir}/dev/pts" Same error |
This task depends upon
we need a keyring package that contains the keys and then the mounting problem.
The problem is definitely related to the /dev/pts/ problem you linked to. Maybe you bound the pts folder to the wrong place or similar.
[code]root@obelix# diff mkarchroot /usr/sbin/mkarchroot
216a217
>
217a219,222
>
> [[ -e "${working_dir}/dev/pts" ]] || mkdir "${working_dir}/dev/pts"
> mount --bind /dev/pts "${working_dir}/dev/pts"
>
236d240
< mount -t devpts devpts "${working_dir}/dev/pts" -o newinstance,ptmxmode=666[/code]
This may be ugly, but mkarchroot works now
One interesting thing is, if you enter to this chroot with mkarchroot -r then start sshd, next login via ssh, pacman works fine.
Anyway, as I said previously, is time to make own implementation of mkarchroot for mkarchiso.
# tty
not a tty
# cat /dev/ptmx &
[1] 1483
# tty
/dev/pts/0
We need to run (-r <cmd>) in your own tty, otherwise newinstance should not be used (at least for things thats needs a tty like gpg) [ttyname(3)]
[#1] http://mailman.archlinux.org/pipermail/arch-releng/2012-March/002421.html