ssinyagin / pcengines-apu-debian-cd

Deban installer CD for PC Engines APU board with mSATA drive
84 stars 40 forks source link

Small lvm root partition #9

Closed micressor closed 7 years ago

micressor commented 8 years ago

I'd like to have a small lvm root partition. It would be easier to create additional data partitions.

ssinyagin commented 8 years ago

feel free to submit a change, or sponsor my time to implement it :)

ssinyagin commented 7 years ago

the installer asks a question. can you suppress it?

┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ Before the Logical Volume Manager can be configured, the current      │
   │ partitioning scheme has to be written to disk. These changes cannot   │
   │ be undone.                                                            │
   │                                                                       │
   │ After the Logical Volume Manager is configured, no additional changes │
   │ to the partitioning scheme of disks containing physical volumes are   │
   │ allowed during the installation. Please decide if you are satisfied   │
   │ with the current partitioning scheme before continuing.               │
   │                                                                       │
   │ The partition tables of the following devices are changed:            │
   │    SCSI1 (0,0,0) (sda)                                                │
   │                                                                       │
   │ Write the changes to disks and configure LVM?                         │
   │                                                                       │
   │     <Yes>                                                    <No>     │
   │                                                                       │
ssinyagin commented 7 years ago

and another one

 ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ You have not selected any partitions for use as swap space. Enabling  │
   │ swap space is recommended so that the system can make better use of   │
   │ the available physical memory, and so that it behaves better when     │
   │ physical memory is scarce. You may experience installation problems   │
   │ if you do not have enough physical memory.                            │
   │                                                                       │
   │ If you do not go back to the partitioning menu and assign a swap      │
   │ partition, the installation will continue without swap space.         │
   │                                                                       │
   │ Do you want to return to the partitioning menu?                       │
   │                                                                       │
   │     <Go Back>                                       <Yes>    <No>     │
ssinyagin commented 7 years ago

I'm going to revert your commit for now, and I will remove the 32-bit profile.

ssinyagin commented 7 years ago

sorry, this was with an SD card inserted, and it failed at installing GRUB. Now re-testing it again with msata

ssinyagin commented 7 years ago

on a subsequent install, it also asks:

   ┌───────────────────────┤ [!!] Partition disks ├────────────────────────┐
   │                                                                       │
   │ The selected device already contains the following LVM logical        │
   │ volumes, volume groups and physical volumes which are about to be     │
   │ removed:                                                              │
   │                                                                       │
   │ Logical volume(s) to be removed: root, var                            │
   │                                                                       │
   │ Volume group(s) to be removed: apu-vg                                 │
   │                                                                       │
   │ Physical volume(s) to be removed: /dev/sda5                           │
   │                                                                       │
   │ Note that this will also permanently erase any data currently on the  │
   │ logical volumes.                                                      │
   │                                                                       │
   │ Remove existing logical volume data?                                  │
   │                                                                       │
   │     <Go Back>                                       <Yes>    <No>     │
   │                                                                       │
ssinyagin commented 7 years ago

I'm closing this issue. if someone needs LVM, it's quite easy to modify the preseed file to ones' needs. But we can't make something that suits everyone.

ssinyagin commented 7 years ago

hi, I created a profile "manual" which allows you to do whatever partitioning you like. Also see the ./build script and updated README

micressor commented 7 years ago

A very good idea. Thanks.

ssinyagin commented 7 years ago

I've got now an APU with two SATA disks on my desk, and I realized I forgot how noisy the disks are :)