Open nathmo opened 1 year ago
Copying the running system onto emmc would be spicy, it'd have to be re-mounted read-only. But you can theoretically already sort of write to emmc from sd by booting into plebian from sd, fetching the image using wget, and then writing the image to emmc. I'll have to think about whether there's a better way to achieve this with a dedicated installer image, and if that's even something I want to implement.
resintalling the system on the emmc from the sd card is not a bad idea. i will try to make a script for that
okay so I manually installed it by running :
wget https://github.com/Plebian-Linux/quartz64-images/releases/download/v2023-01-21-1/plebian-debian-bookworm-quartz64a.img.xz
sudo apt-get install xz-utils
unxz plebian-debian-bookworm-quartz64a.img.xz
lsblk
sudo dd of=/dev/mmcblk1 if=plelebian-debian-bookworm-quartz64a.img bs=1M status=progress
and it works. I will try to add some glue and glitter and make a nice script out of it
Just because I happened to have it laying around, here is what I use:
sudo apt install xz-utils
curl -fsSL https://github....etc.....xz | xzcat -dq | sudo dd of=/dev/BLOCK bs=4M oflag=dsync status=progress
Armbian has an install script, that also supports nice features like having the bootloader on eMMC/SD and the OS on a nvme. Maybe this script could be adapted for plebian?
https://github.com/armbian/build/blob/main/packages/bsp/common/usr/sbin/armbian-install
I don't plan on adapting anything from Armbian ever, or having an installer. Those go against the point of installer-less images.
I'm not trying to be overly dismissive here but I want to keep the scope of the Plebian images as limited as possible, so that it's a set of things I can actually reasonably test and be sure of them working.
would it be possible to add a script to install the system running from an SD card to the emmc of the board?