pmos stable sxmo installer images not working on pinephone: read-only filesystem
Describe your issue
What's the current behaviour?
The system installed by the installer (installer runs fine) does not work due to a read-only filesystem error. Console reports:
Cannot create directory /home/user/.local -- read only file system
Consequently, sway does not start.
What's the expected behaviour?
A working system
How to reproduce your issue?
Use the latest pmos stable installer (with sxmo) to install to either eMMC or SD, either with or without encryption. Problem reproduces every time.
What device are you using?
pine64-pinephone (v1.2)
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.06
-
v22.12
(Supported until 2023-07-06) -
I confirm that the issue still is present after running sudo apk upgrade -a
- Unable to run due to non-working system
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out - [ ]
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
2023-08-14, but problem also occurs on 2023-08-07, didn't try any older ones Another user also reported this on reddit with 2023-07-24: https://www.reddit.com/r/pinephone/comments/15arr2o/readonly_file_system_sxmo/
Additional information
A suggestion solution on Reddit was:
I had the same problem and I fixed it by putting the correct UUID's in /etc/fstab.
I used blkid values on /dev/mmcblk2p1 and p2 for boot and / respectively.
I tried that (booted a normal pmos image without installer and mounted the eMMC); the UUIDs in /etc/fstab were indeed not matching the ones reported by lsblk/blkid, and that indded resolved the issue.
Values in fstab:
/mnt/root/etc # cat fstab
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=a26fec84-3388-4e71-88eb-ed80d23a1d4a / ext4 defaults 0 0
UUID=137cac60-d064-42c5-ab2a-0d3cabc6c7e1 /boot ext2 defaults 0 0
Expected values:
/mnt/root/etc # lsblk -o +UUID
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS UUID
mmcblk2 179:32 0 29.1G 0 disk
├─mmcblk2p1 179:33 0 243M 0 part /mnt/boot e38e9629-4c10-41dc-a566-7127915a3a1c
└─mmcblk2p2 179:34 0 28.9G 0 part 53416220-0086-4b4a-8d0e-fdbbbeebe253
└─root 254:0 0 28.9G 0 crypt /mnt/root 6e279841-cb67-436a-a3fd-62746c5b8fee
mmcblk2boot0 179:64 0 4M 1 disk
mmcblk2boot1 179:96 0 4M 1 disk
zram0 253:0 0 1.5G 0 disk [SWAP] d818e29d-5e22-41a9-9372-5bf1adca035b