Pinebook pro install with encryption

I’m trying to install a fresh image on the prinebook pro with an encrypted root partition, using the manjaro-arm-installer.

To see how this would work I’ve first installed on an SD card on an X64 machine using
$ export CRYPT="y" && sudo -E bash manjaro-arm-installer
Build the image, write to SD card and I’ve successfully booted from it, confirming that the encryption works.

Now on to the eMMC install, running from my previously made SD card install on the pinebook, I ssh into the pinebook.
lsblk shows the sdcard as mmcblk1 and the original install on mmcblk2
Choose mmcblk2 to install, choose the options, enter the passphrase twice and the install starts

==> Proceeding....
  -> Getting package lists ready for pbpro mate edition...
==> Getting /dev/mmcblk2 ready for pbpro...
Enter passphrase for /dev/mmcblk2p2: 
Enter passphrase for /dev/mmcblk2p2: 
Device ROOT_MNJRO already exists.
==> Creating install for pbpro...
  -> Used device is /dev/mmcblk2p
  -> Downloading latest aarch64 rootfs...
Manjaro-ARM-aarch64-latest.tar.gz      100%[============================================================================>] 167.69M  3.18MB/s    in 44s     
  -> Extracting aarch64 rootfs...

Suddenly the wifi on the pinebook disconnects, notify: no more user 1000 ?!
cat /etc/passwd only shows root on the pinebookpro
It seems the installer overwrote the root filesystem on the SD card?
Edit
Commands do not work anymore, sudo fails. So I’ve tried to reset the device by holding the the power button.
device is now dead and does not respond to the powerbutton. no light comes on.

Time to get a eMMC to usb adapter and unbrick the device.

Why do you SSH into the Pinebook, from the Pinebook?

Reading back what I wrote that did not make a lot of sense.
What is did was make a SD with a encrypted rootfs.
Boot the pbp with the encrypted SD to test the concept.
While the pbp was still running from the SD card I ssh’d in from my desktop.

I ssh in from my desktop computer, the laptop is sitting beside me. Copy pasting a command is easier then typing while leaning to the side/left. It it is a bit cramped where I sit.

Ah okay.

You can run the installer script from the SD card install on your PBP, btw.
Just choose your eMMC drive as the target device and it should do the same as it did for your SD card on your x64 machine.

When I have a working pbp that is that is the plan :slight_smile:
Adapter will be here in ~10 day’s, Let see what else I can break in the mean time :crazy_face:

Took a little longer for the adapter to arrive, apologies for the late update.

Removed the boot and root partitions from the eMMC, this made booting work again.
Installing from a fresh Deepin SD card, lots of trouble:

Weird, weird log, best to forget about it

==> Proceeding…
→ Getting package lists ready for pbpro i3 edition…
==> Getting /dev/mmcblk2 ready for pbpro…
Enter passphrase for /dev/mmcblk2p2:
Enter passphrase for /dev/mmcblk2p2:
==> Creating install for pbpro…
→ Used device is /dev/mmcblk2p
→ Downloading latest aarch64 rootfs…
Manjaro-ARM-aarch64 100%[===================>] 166.99M 359KB/s in 18m 31s
→ Extracting aarch64 rootfs…
./usr/lib/libgo.so.16.0.0: truncated gzip input
bsdtar: Error exit delayed from previous errors.
→ Setting up keyrings…
→ Generating mirrorlist…
→ Installing packages for i3 on pbpro…
execv(pacman) failed: No such file or directory
→ Enabling services…
→ Applying overlay for i3…
→ Setting up users…
→ Setting password for root …
→ Adding user…
→ Enabling user services…
→ Setting up system settings…
execv(locale-gen) failed: No such file or directory
sed: can’t read /var/tmp/manjaro-arm-installer/root/usr/lib/systemd/system-preset/90-systemd.preset: No such file or directory
Correcting permissions from overlay…
execv(pacman) failed: No such file or directory
→ Cleaning install for unwanted files…
==> pbpro i3 install complete
==> Writing bootloader and cleaning up after install…
mv: cannot stat ‘/var/tmp/manjaro-arm-installer/root/boot/*’: No such file or directory
sed: can’t read /var/tmp/manjaro-arm-installer/boot/extlinux/extlinux.conf: No such file or directory
==> Time : 19.47 minutes…
[h@pbp ~]$

Installing to the eMMC with a USB adapter from a X64 machine did work (tried a few images, now using the i3)
I presume I fixed my issue when

  1. I removed all the partitions
  2. Wrote a new partition to the eMMC, overwriting all the small parts in the beginning sectors of the eMMC
  3. Removing the partition again leaving a empty eMMC
  4. Install using: export CRYPT="y" && sudo -E bash manjaro-arm-installer
==> Image generation successful
  -> Cleaning install for unwanted files...
==> pbpro i3 install complete
==> Writing bootloader and cleaning up after install...
==> Time : 18.68 minutes...

Thanks for making this possible Manjaro ARM team! :smiley:

Next time I’ll try to keep some more logs and try to really find out what I did to cause this mess :stuck_out_tongue: For now I’m super happy that I can take this thing to the pub / holiday (when possible again) and not worry about it getting nicked with a open drive.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.