Netboot works like “Live-USB” that users could try postmarketOS without flashing the OS. Of course, the bootloader must be unlcoked in the first place.
Device: Xiaomi Redmi 5 Pro (whyred)
Run pmbootstrap and choose xiaomi/whyred. Then we have to modify kernel configs.
Open 9999 port of firewall on the PC. Then start Netboot server:
1
pmbootstrap netboot serve
Now the phone should boot. We could ssh into it:
1
ssh user@172.16.42.1
Now we can try out postmarketOS on the phone. Everthything works like real installation. And postmarketOS will stop working if the phone is unplugged from PC.
The data of Netboot postmarketOS is located at ~/.local/var/pmbootstrap/images_netboot/.