pmbootstrap install: move "create device rootfs" code without hardcoded step
Two commits to prepare pmbootstrap install --ondev --no-rootfs
(#1966 (closed)).
pmbootstrap install: new func create_device_rootfs
Move related code from pmb/install/_install.py:install() to a new
create_device_rootfs() function in the same file, so it can be skipped
with the upcoming --no-rootfs parameter.
pmbootstrap install: properly count install steps
Get rid of hardcoded step numbers, even for the currently common steps.
With the upcoming --ondev --no-rootfs, we will need to skip the
hardcoded step 2 (create device rootfs).
How to test:
- Run
pmbootstrap install
, it should work the same as before.