I fiddled a bit with creating a Live USB stick for creating a LFS system on my new computer. To make this easier I wanted to store some persistent data on it as well (settings, GCC, make and such things). I created following partitions (gpt):
sdb1 8 MiB unformattad label: none flags: bios_grub sdb2 100 MiB FAT32 label: EFI flags: boot, esp sdb3 2.00 GiB FAT32 label: BOOT flags:msftdata sdb4 11.77 GiB Ext4 label: casper-rw flags: none sdb5 1.00 GiB swap label: none flags: none
I used Ubuntu 16.04 in my last test the system has no optical drives. It runs the Live-Image fine as long as I don't boot it persistent.
The last outputs on the console are:
done. Begin: Setting up autologin... ..done Begin Disablig systemd's GPT auto generator... ..done begin: Setting hostname... ... /scripts/casper-bottom/18hostname: line 23: can't create /root//etc/hostname: nonexist directory /scripts/casper-bottom/18hostname: line 25: can't create /root/etc/host /scripts/casper-bottom/07remove_oem_config: .: line 20: can't open '/root/usr/share/debconf/ (here is something missing I could recreate between reboots) Begin: running /scripts/nfs-bottom ... done. Begin: Running /scrips/init-bottom ... muont: mounting /dev on /root/dev failed: No such file or directory done. mount: mounting /run on /root/run failed: No such file or directoy done. run-init: current dirctory on the same filesystem as root: error 0 Target filesystem doesn't have requested /sbin/init. run-init: current dirctory on the same filesystem as root: error 0 run-init: current dirctory on the same filesystem as root: error 0 run-init: current dirctory on the same filesystem as root: error 0 run-init: current dirctory on the same filesystem as root: error 0 run-init: current dirctory on the same filesystem as root: error 0 No init found. try passing init= bootarg
I needed several reboots to type all in my kvm switch, messed up the outputs after switching system back and forth (doesn't be problematic once I get a real shell or being under X, but during this stage it messes a bit, may be a better one would have done this, but the errors occurs even without the KVM switch.
I found new info on the Problem. During the manual installation the boot files later accessible in /boot/efi didn't go into the ESP as intented by me.