Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]custom chroot emerge fails at pretend
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
picarica
Guru
Guru


Joined: 11 Aug 2018
Posts: 326

PostPosted: Sat Jan 28, 2023 9:39 pm    Post subject: [SOLVED]custom chroot emerge fails at pretend Reply with quote

So hello i tried creating chroot for some packages i followed this guide and well i have problems with mergin any package
every package results this error
Code:

The ebuild phase 'pretend' has exited unexpectedly. This type of
 * behavior is known to be triggered by things such as failed variable
 * assignments (bug #190128) or bad substitution errors (bug #200313).
 * Normally, before exiting, bash should have displayed an error message
 * above. If bash did not produce an error message above, it's possible
 * that the ebuild has called `exit` when it should have called `die`
 * instead. This behavior may also be triggered by a corrupt bash binary or
 * a hardware problem such as memory or cpu malfunction. If the problem is
 * not reproducible or it appears to occur randomly, then it is likely to
 * be triggered by a hardware problem. If you suspect a hardware problem
 * then you should try some basic hardware diagnostics such as memtest.
 * Please do not report this as a bug unless it is consistently
 * reproducible and you are sure that your bash binary and hardware are

this doesnt tell me anything, beacuse well cpu is working and stuff, note is taht on my host i am using systemd and i downloaded stage3- with systemd , could that be an issue? if so it could be added to the wiki to not download systemd stage 3
and also does the init.d script wroks for systemd systems?


Last edited by picarica on Thu Feb 02, 2023 7:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22746

PostPosted: Sat Jan 28, 2023 10:56 pm    Post subject: Reply with quote

Please post the full output, starting at the shell prompt where you ran emerge and ending at the next shell prompt. The quoted text says that there should have been an error above, but if there was, you did not show it.

As far as I know, stage3 based on systemd should work, and is likely the preferred path for users who intend to install systemd as their init system.

systemd has some limited support for treating an init.d script as a systemd unit. Whether it suffices for the use case you have in mind is unknown.
Back to top
View user's profile Send private message
picarica
Guru
Guru


Joined: 11 Aug 2018
Posts: 326

PostPosted: Thu Feb 02, 2023 7:22 pm    Post subject: Reply with quote

Hu wrote:
Please post the full output, starting at the shell prompt where you ran emerge and ending at the next shell prompt. The quoted text says that there should have been an error above, but if there was, you did not show it.

As far as I know, stage3 based on systemd should work, and is likely the preferred path for users who intend to install systemd as their init system.

systemd has some limited support for treating an init.d script as a systemd unit. Whether it suffices for the use case you have in mind is unknown.

sorry for the late response u had to reinstall the chrot, and this is the whole output
Code:
mount: /proc: must be superuser to use mount.
       dmesg(1) may have more information after failed mount system call.
Unable to mark /proc slave: 32

wlell the erro, but not sure why this happens because it is mounteed
i literrel have this script .sh

Code:


mount --rbind /dev /home/picarica/diffusion/chroot/dev
mount --make-rslave /home/picarica/diffusion/chroot/dev
mount -t proc /proc /home/picarica/diffusion/chroot/proc
mount --rbind /sys /home/picarica/diffusion/chroot/sys
mount --make-rslave /home/picarica/diffusion/chroot/sys
mount --rbind /tmp /home/picarica/diffusion/chroot/tmp
mount --bind /run /home/picarica/diffusion/chroot/run
chroot /home/picarica/diffusion/chroot/ /bin/bash

idk why it is saying proc isnt installed
Back to top
View user's profile Send private message
picarica
Guru
Guru


Joined: 11 Aug 2018
Posts: 326

PostPosted: Thu Feb 02, 2023 7:25 pm    Post subject: Reply with quote

oh my god i fixed it, i untared the stage3 with my user permissions, so the permission were all wrong in chroot, i change them to root, now it all works,
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum