View previous topic :: View next topic |
Author |
Message |
picarica Guru
Joined: 11 Aug 2018 Posts: 326
|
Posted: Sat Jan 28, 2023 9:39 pm Post subject: [SOLVED]custom chroot emerge fails at pretend |
|
|
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 |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22746
|
Posted: Sat Jan 28, 2023 10:56 pm Post subject: |
|
|
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 |
|
|
picarica Guru
Joined: 11 Aug 2018 Posts: 326
|
Posted: Thu Feb 02, 2023 7:22 pm Post subject: |
|
|
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 |
|
|
picarica Guru
Joined: 11 Aug 2018 Posts: 326
|
Posted: Thu Feb 02, 2023 7:25 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|