3 ms·
The arch linux install has a little wrapper around chroot, used to configure the installed system without booting it. https://wiki.archlinux.org/title/Installa
by smallpipe 1y ago
The arch linux install has a little wrapper around chroot, used to configure the installed system without booting it.
https://wiki.archlinux.org/title/Installation_guide#Chroot https://wiki.archlinux.org/title/Installation_guide#Chroot
- znpy 1y agoGentoo’s stage3 would like to say a word
- slicktux 1y agoI remember first installing Gentoo…printed the whole manual and followed along. After a failed attempt and second successful install I learned enough to know that I could use a LiveUSB of my choosing and chroot into the install. Good times!
- adrian_b 1y agoOn Gentoo, it is also simple to install a completely new system in a chroot environment, even if it is intended for a computer with a different, but compatible architecture. This is frequently very convenient if you want to install Gentoo by compiling everything from sources on a cheap and small computer, e.g. one with some Intel Atom CPU. Instead of compiling anything on the resource-constrained computer, you install a fresh Gentoo system for it, in a chroot environment on a fast desktop computer, which supports a superset of the ISA of the small computer, so you can still execute the programs intended for the target computer. Then you just copy the installation result over the SSD/HDD of the destination computer. If you have many identical computers, you can copy the installed Gentoo over all of them without any problems, removing the need for multiple installations. If desired, you can keep the chroot environment with the installation result and perform any later updates on it. Then you synchronize the updated Gentoo from the chroot with the one or more target computers.
- slicktux 1y agoYes, there’s a few gentoo developers and bug hunters that do exactly that but to find bugs and test updates 8D!
- whalesalad 1y agoDebian's debootstrap would also like to participate in this discussion
- glitchcrab 1y agoDebootstrap is for installing a minimal system into a dir from another running system (so only useful in the setup phase), whereas arch-chroot is used to access an already installed system (e.g. when booting off a USB stick to fix something). They're not the same thing. The debootstrap-like tool in arch is called pacstrap.
- mystified5016 1y agoManjaro has the same, I'd assume inherited from arch and modified. I just wish the script could figure out a BTRFS drive without me manually mounting volumes :(
- out-of-ideas 1y agoi was very happy when that arch-chroot + pacstrap simplified my arch setup not having to run those mounts (i remember doin the same setup process for arch for centos/rhel just to not use anaconda and removing bloat, or rather installing what i wanted) for btrfs, if you use a consistent volume mapping on your systems, its pretty easy. in arch setup i typically enable ssh and have a pretty simple set of bashisms for target device, compression, and mount points. then its copy-pasta since its a boiler plate for when i need to recover or fresh install not glanced at manjaro so not familiar with its install-methods
- _lvbh 1y agoI've actually used this to unbrick my laptop before. Very useful