Skip to main content

Noderoot is a tool for chrooting into root file systems stored on a different system.

Project description

# Noderoot

Noderoot is a tool for chrooting into root file systems stored on a different system.

### How it works

  • Rootfs path on server: `/opt/somerootfs`

  • Rootfs mount path on node: `/home/user/rootfs`

  1. Using NFS: Shares `/opt/somerootfs`.

  2. Using SSH: connects to the node and brings up the mount using the nfs client at `/home/user/rootfs`.

  3. Using SSH: connects to the node and brings up any additional bind mounts locally such as /proc, /dev, /sys.

  4. If a command is given, then using SSH: connects to the node and chroot’s into the share and runs the command.

  5. If no command given, leaves the mount up and waits for the user to hit Ctrl+C.

  6. When complete, brings down the mounts in reverse order and unshares the `/opt/somerootfs`.

### Why use it?

Its mainly an alternative for using qemu user mode emulation.

For example, when building a rootfs for an ARM system the user may want to chroot into the rootfs and run some compilation steps. This tool allows that to happen on the real CPU that the rootfs will end up living on rather than an emulated one.

### Server Setup

On Debian systems the server needs nfs-kernel-server

### Node Setup

On Debian systems the node needs nfs-common

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noderoot-0.0.1.tar.gz (5.6 kB view details)

Uploaded Source

File details

Details for the file noderoot-0.0.1.tar.gz.

File metadata

  • Download URL: noderoot-0.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for noderoot-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0fb0cfaccc302656d60fd06b2217d4d365859fdc3a4ce1e4162fa0c22af4598c
MD5 facac29422635b6bfba5fd301ff60204
BLAKE2b-256 10634c1fd2d6213ff69ee23d1bbbb3a0f37545f3163c80f18d293da7beb993da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page