Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some options not being adhered in the finished image. #111

Closed
dinapappor opened this issue May 18, 2015 · 3 comments
Closed

Some options not being adhered in the finished image. #111

dinapappor opened this issue May 18, 2015 · 3 comments

Comments

@dinapappor
Copy link

When I build an image with the crochet tool for rpi2 I have two options that doesn't seem to be honoured.

Option Growfs

The / is not resized to use maximum amount of the card (this is a 8 GB card), I am only getting
/dev/mmcsd0s2a 3.5G 1.8G 1.3G 58% /

When running df -h

In /etc/rc.conf I see:

# On first boot, enlarge the root filesystem to fill the SD card growfs_enable="YES"

So the directive is added. But nothing is happening.

Running service growfs start manually does resize the partition.

This is not the case with the rpi2 image on ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0/ That one resizes.

option SwapFile 512mb file=/usr/swap0
Swapfile is created but is not used. There is no output in top for it either.

swap is also defined in /etc/fstab
but not mounted.

(How do I submit my configfile?)

@dinapappor
Copy link
Author

Adding late option to swap-line got the swap mounted for me.
md none swap sw,file=/usr/swap0,late 0 0

@kientzle
Copy link
Contributor

I've added 'late' to fstab entry created for SwapFile
Thank you for pointing that out.

I'll try using the Growfs option on my own next image and see if I can puzzle anything out.

@kientzle
Copy link
Contributor

Ah. I believe this is all fixed now. The key issue for growfs: Crochet is now using the standard /etc/rc.d/growfs script to handle this, which in turn relies on "firstboot" logic which requires a new image to have a file called /firstboot

Crochet now adds a /firstboot file when installing world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants