Live data from Hacker News

The chroot Technique – a Swiss army multitool for Linux systems

livesys.se

11–20 of 123 posts

Re: The chroot Technique – a Swiss army multitool for Linux systems

#11

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

Manjaro 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 :(

Re: The chroot Technique – a Swiss army multitool for Linux systems

#12
Ah - my attempt at doing this was almost there, except for the few bits that kept erroring out because I didn't mount the proc,dev,etc. mountpoints correctly :) Something to give another whirl on. At the time, I wanted something simple without docker to store everything development-related using different libraries. This is where debootstrap+chroot comes in - to build against various versions of libraries in Debian (if I remember correctly - it's been awhile.)

Re: The chroot Technique – a Swiss army multitool for Linux systems

#14
Currently working on scripts to provision a drive outside of the machine it’s meant to go on using chroot. I’ve so far accidentally unmounted /dev/pts several times from the host system and running docker inside the chroot caused a hard lock. Fun stuff.

Re: The chroot Technique – a Swiss army multitool for Linux systems

#20
post #4

I actually wish that instead of docker & etc we had just gotten a better chroot... Or maybe just a new kernel syscall that is chroot()++.

Apples and oranges.

Among many other things, Docker (and Podman etc) has

1. Images and OverlayFS

2. Networking

3. User namespace mappings

4. Resource management

---

If all you want is file system isolation, then docker (and postman, etc) is massive overkill chroot is correct.

Post reply on HN