Missing rootfs_stamp and other issues with the pm-flash and rootstock-touch-install scripts (Documentation Opportunity)
I'm attempting install on a Nexus 5X (bullhead) and when running the pm-flash utility, the script checks for the latest rootfs version by curl-ing the URL: "https://images.plasma-mobile.org/rootfs_stamp" (Line 55)
This step fails because that rootfs_stamp file does not exist in that web folder.
I am able to update the script, bypassing the version check and plugging in the latest version manually into the ROOTFS_VERSION variable assignment to get past this hurdle.
The next hurdle I hit is when it is done downloading the rootfs, system, recovery, and boot, and it reboots to TWRP recovery. I'm not sure if this is happening because I already had TWRP installed or if your recovery.img is TWRP, but when it boots, the /cache and /data partitions are already mounted. So the mount commands in the rootstock-touch-install script (lines 41-49) fail with a device or resource busy.
If I modify the pm-flash script further by replacing the "wait_for_device" function call at line 93 with a "read -p" pause to give myself a chance to go into TRWP and unmount those two partitions, then when I let the script continue, it gets through those mounting commands and the script continues through to my next hurdle.
For my last hurdle, the fetch-demo.sh script called in the rootstock-touch-install script (lines 159-165) always runs. There does not seem to be any IF statement to let us specify if we want demo content or not. And the fetch fails because of a 404 error.
If I comment out that section of the rootstock-touch-install script to prevent it from downloading the demo data, the pm-flash script completes all steps without any errors. Unfortunately, my bullhead device fails to boot. It is just stuck at the Google boot-logo screen. I can reboot it into recovery but that is it.
Then I found this thread: https://forum.kde.org/viewtopic.php?f=297&t=150546 that pointed me to the flash_vendor script included in the pm-flashtool folder. I ran that script, then re-ran my modified pm-flash script and all is good!