4 Commits

Author SHA1 Message Date
Johannes Keyser
2b0cf1b987
disks: add missing import json 2017-05-08 20:59:51 -04:00
Sunil Mohan Adapa
ee7cc98fee
apps, system: Remove modules and merge into main
- Remove apps and system modules and merge their views into main views.

- Move main_menu from cfg into menu.py.

- Remove dependencies of other modules on apps and system modules.

- Update tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-05-05 22:31:45 -04:00
Johannes Keyser
89146f64ce
disks: Use information from lsblk for more accuracy
Closes #795.  On a Raspberry Pi, the root partition was show as being
mounted from /dev/root.  Use information from lsblk to more acurately
indentify the device as /dev/mmcblk0p2.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-05-01 17:01:40 +05:30
Sunil Mohan Adapa
9ac37465dd
disks: New module to manage disks
- Show free space of currently mounted partitions.  Should help with
  people running out of free space and ending up with non-working
  system.  In future, this module could emit more visible messages.

- Show and allow expanding root partition to help people who have
  written FreedomBox images to higher capacity SD cards.  Very selective
  and restrictive checks to minimize problems.

- Automated tests to ensure expansion works in non-trivial senarious.
2016-06-19 16:20:01 -04:00