Skip to content

jbock-java/pleb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Links

Akhilesh Moghe

James Gibbard

How to populate dev

systemd-nspawn

Using chroot

Building

./install.sh
make build

Fedora

mkdir rootfs #on btrfs: btrfs subvolume create rootfs
cd rootfs
mount -tproc /proc proc/
mount -obind -tsysfs /sys sys/
mount -obind /dev dev/
mount -obind /run run/
cd ..
dnf --use-host-config --releasever=41 --best --setopt=install_weak_deps=False --repo=fedora --repo=updates --installroot=/root/workspace/ramfs/rootfs install dhcp-client dnf fedora-release glibc glibc-langpack-en iputils less ncurses passwd systemd systemd-networkd systemd-resolved util-linux vim-default-editor
umount rootfs/proc
umount rootfs/sys
umount rootfs/dev
umount rootfs/run
#edit rootfs/etc/shadow
systemd-nspawn -b -D rootfs

Get root shell in initrd from installation media

If ./run aborts and does not give you a root shell:

In rootfs/usr/lib/dracut-lib.sh, modify die function to look like this:

die() {
  emergency_shell
  exit 1
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published