Issue install 20.04 with autoinstall
Tom H
tomh0665 at gmail.com
Mon Jan 25 17:53:55 UTC 2021
On Mon, Jan 25, 2021 at 3:28 PM Jerry Geis <jerry.geis at gmail.com>
wrote:
>
> Thanks - I tried this - It stops with the same error:
>
> AttributeError: 'NoneType' object has no attribute 'grub_device'
>
> The VM I'm trying to install on looks like:
>
> Disk /dev/sda: 128.8 GB, 128849018880 bytes, 251658240 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 4096 bytes
> I/O size (minimum/optimal): 4096 bytes / 4096 bytes
> Disk label type: dos
> Disk identifier: 0x000d8b93
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 2048 2099199 1048576 83 Linux
> /dev/sda2 2099200 251658239 124779520 8e Linux LVM
1) How are you ending up with an LVM partition? You must be using a
different "storage:" section.
2) I ran "fdisk -l" in the VM that I'd created, and it wasn't what I'd
requested in the autoinstall file. It seems that you can use
storage:
layout:
or
storage:
config:
and I used both in my user-data. "layout:" that won the day, and all
that I had was a biosboot partition and a root partition.
This did the right thing:
storage:
config:
- id: disk0
type: disk
match:
size: largest
ptable: gpt
grub_device: true
wipe: superblock
- id: disk0-biosboot
type: partition
flag: bios_grub
device: disk0
size: 1MB
- id: disk0-boot
type: partition
device: disk0
size: 512MB
- id: disk0-root
type: partition
device: disk0
size: -1
- id: disk0-boot-fs
type: format
volume: disk0-boot
fstype: ext4
- id: disk0-root-fs
type: format
volume: disk0-root
fstype: ext4
- id: disk0-boot-mount
type: mount
device: disk0-boot-fs
path: "/boot"
- id: disk0-root-mount
type: mount
device: disk0-root-fs
path: "/"
More information about the ubuntu-users
mailing list