-
Notifications
You must be signed in to change notification settings - Fork 30
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
raspberrypi-sys-mods/firstboot #147
Comments
Root partition created is significantly larger on this build, perhaps I built the last one on a 16GB card Im not sure:
vs July21 image
|
Do yu focus here on the resizing of the SD card ? Just a comment : you can conveniently resize with gparted. And so yu can bypass the init_resize.sh plus cmdline.txt |
Yes I wonder if I should do that just use gparted to create those initial partitions for the image.. and then have init_resize extend the data partition later maybe? |
So the raspios uses now : And not any more the init_resize.sh : If i understand correctly ? In our process, sizes were fixed : EmonScripts/install/init_resize.sh Line 68 in 532784d
|
@alexandrecuer - remember the scripts allow a user to run the scripts on a fresh install. IIRC, shrinking the Yes, we fixed the size of |
@borpin : I understand totally anyway when a user has got a linux OS, he can adjust the size with gparted and it is ultra simple. You do not need to be an expert of anything from my point of view. Moreover, those whishing to create their own cards are not newbies... for example, I use google tensorflow and emoncms and so I need space on the root. For me, when i burn a new sd, it is much more simple to use gparted than to rework the init_resize file by the way, I now use the 64 bits OS on most of my field installation without a problem for more than one year |
Good - just checking we weren't talking as cross purposes.
And change the partition type etc to get the long life we have achieved? If it can, ideally we'd script it so it is repeatable. The other thing of course is that we are building an image that is as small as possible then expanded. Another of the issues was the image was too big at one point.
Of course but that is post install. Here we provide a preinstalled image, as small as possible, that then has to expand to the card size. We did that by duping the old I'm not saying the
RaspberryOS? |
This was the thread re Linux 5.10 v 5.15 https://community.openenergymonitor.org/t/random-hangs-of-emonpi-emonsd/20802/48?u=borpin |
Lots more 'junk' included? You know me, I'm a fan of DietPi 😆 |
no, in my case it is preinstall or postinstall. You can change the partition type to ext2 if you want, if your remark is related to this. For the size, I dont remember, but it is true it is a big file, and my latest image is here : yes, the raspiOS 64 bits 5.15.32 now I use a makefile, so I do everything with one single file of 400 lines, and no more 50 files to mantain or to browse, only one. for all python services I develop in order to interact with emoncms, I use a similar process based on a single makefile to install all the services. but that is only my experience, nor I do not say that this is the ultimate solution :-) |
Yes that is a significant issue and one we have avoided by this approach. The advantage of adapting the builtin resize operation, is it just works with no user interaction into a headless EmonPi for instance. |
just watching the sizes. it is anyway true with your method, the user do not have to interact |
I've remembered the main issue. You cannot shrink the |
I have raised the issue with the RPi-OS folk. Seem to be open to offering it as an option at some point. @TrystanLea |
I think for creating the SD Card, simply add a partition first in the spare space so it doesn't expand |
The latest RaspberryPi OS Lite 32bit /boot/cmdline.txt looks like this:
Note in particular:
is different from previous call to resize only.
first boot contains the following items that appear important:
It looks like it would be worth calling everything apart from do_resize?
any thoughts @borpin @alexandrecuer ?
The text was updated successfully, but these errors were encountered: