No description
  • Shell 98.5%
  • Dockerfile 1.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-14 12:55:45 +03:00
Dockerfile Add Dockerfile to package newroot as a podman image 2026-08-27 15:37:43 +03:00
git-dirty.sh Add git-dirty 2026-08-28 10:43:45 +03:00
README.md build / build_all: one fresh tlnx-build container per package (podman on host) 2026-09-04 09:52:28 +03:00
stage0.txt AI fixes 2026-09-14 12:55:45 +03:00
tbootstrap.sh AI fixes 2026-09-14 12:55:45 +03:00

tbootstrap — newroot as podman image

Build a podman image from the installed rootfs (NEWROOT, default $HOME/newroot) and run it.

Build all example

podman run --rm -v /home/tlnx:/root -w /root/rpms tlnx-build tbootstrap/tbootstrap.sh install_all

Enter newroot without root

Instead of a privileged chroot, use user+mount namespaces:

unshare -Ur /usr/sbin/chroot newroot

Run from the directory that contains newroot (e.g. $HOME), or pass an absolute path.

Build image

From /home/tlnx/rpms (host):

tbootstrap/tbootstrap.sh image

Defaults: NEWROOT=$HOME/newroot, tag TLNX_IMAGE=tlnx:newroot. Override if needed:

NEWROOT=/path/to/rootfs TLNX_IMAGE=tlnx:latest tbootstrap/tbootstrap.sh image

Run container

Interactive shell (CMD is /bin/bash):

podman run -it --rm tlnx:newroot

One-shot command:

podman run --rm tlnx:newroot /bin/bash -c 'rpm -qa | sort'