by stormaes » Wed Jan 04, 2017 11:29 am
You can tar up the rootfs I think.
Process is like this (cant remember the exact details):
Install to medium and boot
update $this->bbcode_second_pass_code('', 'pacman -Syu')
<do your customisation, install packages etc>
clear cache $this->bbcode_second_pass_code('', 'paccache -rk0')
shutdown and insert medium in another machine
mount dirs
$this->bbcode_second_pass_code('', 'mkdir /mnt/boot && mount /dev/sdx1 /mnt/boot
mkdir /mnt/root && mount /dev/sdx2 /mnt/root')
remove machine-id (forces regeneration on next boot, and prevents some weirdness when networking two systems I think)
$this->bbcode_second_pass_code('', 'rm /mnt/root/etc/machine-id')
compress filesystem.
$this->bbcode_second_pass_code('', 'tar -cfzv AlarmCustom.tar.gz /mnt')
I have done this a few times, (or something very very similar, this is from memory), and been able to successfully install to rpis.
Let me know if you have success. I'll try to remember to go through the process tomorrow morning, and see if there anything I forgot.