Open axis7818 opened 7 years ago
I made a few changes to the mounting strategy but there is a beta image rolling tool in the devops folder that takes a Raspbian image and the git repository root as arguments, and builds the entire SAR system in a chroot environment against the image. Once this has been proven out for a couple writes, we should be good to go.
Last item on this is to upload a completed initial release image to the GitHub Releases page. @axis7818 Can you handle doing this when you're happy with the stability?
Pre built raspbian image ready for download??? or expected release date???? waiting for your response
I think the best way to do this will be to modify the Raspbian image directly. After poking around with a few ideas, we're probably best off to write a script that:
fdisk -l <image file> | grep Linux | awk '{print $2}'
and multiply by the units (I think that's 512 for Raspbian's sector sizes in general)fdisk -l <image file> | grep FAT32 | awk '{print $2}'
, again multiply by 512mount -v -o offset=<multiplied rootfs offset from above> -t ext4 <image file> <mountpoint>
mount -v -o offset=<multiplied vfat offset> -t vfat <image file> <mountpoint>/boot
mount --rbind /dev <mountpoint>/dev
,mount -t proc none <mountpoint>/proc
,mount -o bind /sys <mountpoint>/sys
sync; sync
The resulting image should be completely ready to go. (All of this is untested)