autoinstall storage section
Jerry Geis
jerry.geis at gmail.com
Fri Jan 15 01:29:10 UTC 2021
ok - I took at stab at creating the partition: below is my storage section.
Only thing I see for error is " missing required positional argument
volume".
Basically just trying to make /boot/efi, / and /home with size. Just a
straight basic layout. Not trying to make volumes - just 3 basic partitions
and mount.
What am I missing?
Jerry
storage:
config:
- id: disk0
type: disk
name: main_disk
wipe: superblock
grub_device: true
preserve: false
# Boot partition
- id: disk0-part1
type: partition
number: 1
size: 1GB
device: disk0
flag: boot
# Root partition
- id: disk0-part2
type: partition
number: 2
size: 20G
device: disk0
# home partition
- id: disk0-3
type: partition
number: 3
size: -1
device: disk0
# format boot
- id: disk0-part1-format
type: format
path: /boot/efi
fstype: vfat
# format root
- id: disk0-part2-format
type: format
path: /
fstype: ext4
# format home
- id: disk0-part3-format
type: format
path: /home
fstype: ext4
On Wed, Jan 13, 2021 at 7:14 PM alex <ubuntu at spottedmouse.com> wrote:
> I found a number of really good examples here:
> https://curtin.readthedocs.io/en/latest/topics/storage.html
>
> Here is an example of what I am using:
>
> storage:
> swap:
> size: 0
> config:
> - id: disk0
> type: disk
> ptable: gpt
> name: main_disk
> preserve: false
> path: /dev/sda
> wipe: superblock-recursive
> grub_device: true
> #Boot Partition
> - id: disk0-part-boot
> type: partition
> number: 1
> size: 1GB
> device: disk0
> flag: bios_grub
> #Remainder of disk
> - id: disk0-partition
> type: partition
> number: 2
> size: -1
> device: disk0
> flag: logical
> #Volume group
> - id: volgroup1
> name: vg1
> type: lvm_volgroup
> devices:
> - disk0-partition
> #Root partition
> - id: lvmpart-root
> name: lv-root
> size: 20G
> type: lvm_partition
> volgroup: volgroup1
> #Home partition
> - id: lvmpart-home
> name: lv-home
> size: 5G
> type: lvm_partition
> volgroup: volgroup1
> #Tmp partition
> - id: lvmpart-tmp
> name: lv-tmp
> size: 10G
> type: lvm_partition
> volgroup: volgroup1
> #Var partition
> - id: lvmpart-var
> name: lv-var
> size: 20G
> type: lvm_partition
> volgroup: volgroup1
> #Var-Log partition
> - id: lvmpart-var-log
> name: lv-var-log
> size: 10G
> type: lvm_partition
> volgroup: volgroup1
> #Var-Log-Audit partition
> - id: lvmpart-var-log-audit
> name: lv-var-log-audit
> size: 2G
> type: lvm_partition
> volgroup: volgroup1
> #Var-Tmp partition
> - id: lvmpart-var-tmp
> name: lv-var-tmp
> size: 10G
> type: lvm_partition
> volgroup: volgroup1
> #Root format
> - id: format-root
> type: format
> fstype: xfs
> volume: lvmpart-root
> #Home format
> - id: format-home
> type: format
> fstype: xfs
> volume: lvmpart-home
> #Tmp format
> - id: format-tmp
> type: format
> fstype: xfs
> volume: lvmpart-tmp
> #Var format
> - id: format-var
> type: format
> fstype: xfs
> volume: lvmpart-var
> #Var-log format
> - id: format-var-log
> type: format
> fstype: xfs
> volume: lvmpart-var-log
> #Var-Log-Audit format
> - id: format-var-log-audit
> type: format
> fstype: xfs
> volume: lvmpart-var-log-audit
> #Var-Tmp format
> - id: format-var-tmp
> type: format
> fstype: xfs
> volume: lvmpart-var-tmp
> #Root mount
> - id: mount-root
> type: mount
> path: /
> device: format-root
> #Home mount
> - id: mount-home
> type: mount
> path: /home
> device: format-home
> #Tmp mount
> - id: mount-tmp
> type: mount
> path: /tmp
> device: format-tmp
> #Var mount
> - id: mount-var
> type: mount
> path: /var
> device: format-var
> #Var-Log mount
> - id: mount-var-log
> type: mount
> path: /var/log
> device: format-var-log
> #Var-Log-Audit mount
> - id: mount-var-log-audit
> type: mount
> path: /var/log/audit
> device: format-var-log-audit
> #Var-Tmp mount
> - id: mount-var-tmp
> type: mount
> path: /var/tmp
> device: format-var-tmp
>
>
> On 2021-01-14 03:34, Tom H wrote:
> > On Wed, Jan 13, 2021 at 12:02 AM Jerry Geis <jerry.geis at gmail.com>
> > wrote:
> >> On Tue, Jan 12, 2021 at 5:14 PM Tom H <tomh0665 at gmail.com> wrote:
> >>> On Tue, Jan 12, 2021 at 2:08 AM Jerry Geis <jerry.geis at gmail.com>
> >>> wrote:
> >>>>
> >>>> I am having trouble with the storage section for autoinstall.
> >>>>
> >>>> I simple want to use the disk (sda, vda, nvme) whichever it finds.
> >>>> format a /boot/efi perhaps 512M on partition 1
> >>>> format ext4 a 20G / on partition 2
> >>>> format ext4 rest to /home on partition 3
> >>>>
> >>>> I keep getting FAILED storage or something... How do I accomplish
> >>>> the above simple configuration?
> >>>
> >>> I've never used kickseed, and I haven't used kickstart in a long
> >>>> time (or preseed; I prefer golden master tarballs).
> >>>
> >>> What syntax are you using?
> >>>
> >>> Something like this should do it:
> >>>
> >>> zerombr yes
> >>> clearpart --all
> >>> part /boot/efi --fstype=vfat --size=512
> >>> part / --fstype=ext4 --size=20480
> >>> part /home --fstype=ext4 --size=20480 --grow
> >>>
> >>> You can use "DEBCONF_DEBUG=x" (maximum "x" is 5) on the kernel
> >>> cmdline and switch to another console when the installation fails
> >>> to read the error message(s).
> >>
> >> Thanks those commands are for kickstart - I do know those - I was
> >> talking about autoinstall. I dont know how to do that in
> >> autoinstall. there seems to be no autoinstall-editor at this time.
> >
> > Sorry. No idea.
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210114/4af2d1d1/attachment.html>
More information about the ubuntu-users
mailing list