pmbootstrap/pmb/install
Oliver Smith a0ca7d9a14
install --ondev: no postmarketos-base-nofde (MR 2082)
Install osk-sdl in the installer OS's boot partition for now. I forgot
about a code path earlier, which could render an encrypted target OS
without osk-sdl in the initramfs (and being unable to boot).

The target OS gets embeded in the installer OS as image file. This can
happen in two formats:

a) a full image with partition header and the boot and root partition
This is what bpo is doing when building the official, pre-built images,
as this method allows having the exact same image available separately
without the installer. Basically:
	pmbootstrap install \
		--ondev \
		--no-rootfs \
		--cp path/to/rootfs:/var/lib/rootfs.img

b) an image with just the root partition, no partition header and no
boot partition. This is what you get when running regular
"pmbootstrap install --ondev". It's slightly smaller, as there is no
duplicate boot partition.

If b) was done, the installer will copy the contents of the installer's
boot partition to the target OS. And that means: if osk-sdl is missing
from the installer's boot partition (the initramfs generated there), it
will also be missing in the boot partition of the target OS!

I think we should get rid of the b) code path to avoid confusion in the
future/make maintenance. But until that is done, always install osk-sdl
into the installer OS.
2021-07-11 20:18:41 +02:00
..
__init__.py install: verify pmaports branch supporting fs (MR 2011) 2021-04-11 20:10:28 +02:00
_install.py install --ondev: no postmarketos-base-nofde (MR 2082) 2021-07-11 20:18:41 +02:00
blockdevice.py Enforce E501: Limit the line length to 79 for files in pmb/install (MR 2031) 2021-03-30 14:51:53 +02:00
format.py install: verify pmaports branch supporting fs (MR 2011) 2021-04-11 20:10:28 +02:00
losetup.py Enforce E501: Limit the line length to 79 for files in pmb/install (MR 2031) 2021-03-30 14:51:53 +02:00
partition.py Enforce E501: Limit the line length to 79 for files in pmb/install (MR 2031) 2021-03-30 14:51:53 +02:00
recovery.py treewide: bump copyright to 2021 2021-01-07 23:30:47 +01:00
ui.py pmbootstrap install: support _pmb_groups (MR 2010) 2021-01-27 08:38:53 +03:00