libdevuansdk functions ---------------------- # zlibs/debootstrap ## bootstrap() Stages 1, 2, and 3 of debootstrap. ## config_cleanup() Final cleanup of the rootfs. ## config_thirdstage() Shell script for the system's third debootstrap stage. ## tar_bootstrap() Make a tarball of a base working system, ready to be worked on later. ## tar_unpack() Unpack the tarball of a base working system to the strapdir. # zlibs/helpers ## escalate() Acts as a wrapper for escalating user privilege when needed. Takes two arguments, user and command in the style of: ``` escalate root "chroot /somewhere/where/i/want/to" ``` ## mountdevproc() Mounts `/dev`, `/dev/pts`, and `/proc` where needed. Takes one argument, which is the path containing those. ex: ``` mountdevproc /path/to/bootstrapped/chroot ``` ## umountdevproc() Does the opposite of `mountdevproc`. # zlibs/sysconf NOTE: everything is printed to stdout. Pipe or redirect if you want to write on storage. ## conf_print_debconf() Prints out the config for console-common setup ## conf_print_fstab() Prints the fstab ## conf_print_hostname() Prints the hostname. Requires `$os` to be declared. ## conf_print_hosts Prints default `/etc/hosts` ## conf_print_networkifaces() Prints the `/etc/network/interfaces` file ## conf_print_resolvconf() Prints the `/etc/resolv.conf` file. ## conf_print_sourceslist() Prints default `/etc/apt/sources.list`