Jump to content

R2D2_C3PO

Members
  • Posts

    2
  • Joined

  • Last visited

  1. I looked a bit into your idea and tried to estimate if is is possible in a reasonable time. While at this task I already submitted a patch to the check_first_login script (https://github.com/igorpecovnik/lib/pull/366). My new task proposal would be this: Write a script which asks the user at the first login what he wants to do with the unpartitioned space on the SD-Card. Options: a) Use whole SD-Card for root (as it currently happens automatically) Partition disk and use space for a configurable mountpoint with any supported filesystem (perhaps with some options to choose from, e.g. /home, /var/www, ...) c) Leave space unpartitioned (options: ask again at next boot; never ask again) When selecting option fstab will be updated automatically. The amount reserved for root is user selectable (with reasonable limits). The current mechanism to resize the root fs at first boot would be disabled. Doing this at first login is as good as during first boot. Does this proposal sound good?
  2. While this idea is not on any list it might still be interesting for some people. There is already an option to build an image with btrfs as the root filesystem. However this requires rebuilding the whole image and you have to know the SD card size in advance. I will write a script to convert an already existing image (or even an already used system on a SD-Card) to btrfs. This script will also handle the related problems (creating an ext4 boot partition, updating fstab, etc.). I will also try to create a script to set up automatic btrfs snapshots before and after any package installations (especially for the automated updates). This is the main reason why I want to switch to btrfs. Is allows for easy rollbacks if something goes wrong and provides a nice mechanism for incremental backups.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines