hypriot / image-builder-odroid-c2

Build SD card image for ODROID C2
http://blog.hypriot.com/post/how-to-get-docker-working-on-your-favourite-arm-board-with-hypriotos/
MIT License
36 stars 16 forks source link

Image doesn't resize on first boot #33

Closed bspeice closed 6 years ago

bspeice commented 6 years ago

Leads to plenty of issues. How is firstboot.d supposed to be triggered?

StefanScherer commented 6 years ago

We have removed the firstboot service in os-rootfs 2.0.0.

Switch back by setting HYPRIOT_OS_VERSION to v1.2.6

bspeice commented 6 years ago

Got it. Is there another way to resize the main partition on boot? Is that something that should go in user-data as part of cloud-init?

StefanScherer commented 6 years ago

Maybe https://github.com/hypriot/image-builder-rpi/pull/227 is of help. I moved the

.../files/etc/firstboot.d/10-resize-rootdisk → .../var/lib/cloud/scripts/per-once/resize2fs

But it turned out that this step is called after some other user-data commands that want to install new packages.

On RPi we finally use the Raspbian reboot trick that resizes the filesystem at a very early stage.

trebolcinco commented 6 years ago

Sadly I've dropped back to 3.1 due to resize issue. Is there any update on its way? If not, is there a workaround?

bspeice commented 6 years ago

The workaround at the moment would be to resize the partition manually after flashing. I'm blocked at the moment because my only C2 is in use, so I don't really have anything to test on. If I get to it, I'll order another soon enough.

Happy to start hacking on this if you'd be able to help me though, the fix shouldn't be terribly difficult.

trebolcinco commented 6 years ago

@bspeice I'd be happy to help hack at it with you.

bspeice commented 6 years ago

Resolved by merge in #34

StefanScherer commented 6 years ago

The SD image for v0.4.1 is now available at https://github.com/hypriot/image-builder-odroid-c2/releases/tag/v0.4.1