Issue install 20.04 with autoinstall

Jerry Geis jerry.geis at gmail.com
Mon Jan 25 14:26:52 UTC 2021


Hi Tom,

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


Jerry


Jerry

On Mon, Jan 25, 2021 at 9:00 AM Tom H <tomh0665 at gmail.com> wrote:

> On Sun, Jan 24, 2021 at 9:31 PM Jerry Geis <jerry.geis at gmail.com>
> wrote:
> >
> > I have "not" been able to get a "storage" that works. This was the
> > last one I tried :
> >   storage:
> >     layout:
> >       name: direct
> >     config:
> >       - type: disk
> >         id: disk0
> >         match:
> >           size: largest
> >       - type: partition
> >         id: boot-partition
> >         device: disk0
> >         size: 512M
> >       - type: partition
> >         id: root-partition
> >         device: disk0
> >         size: -1
> >
> > This also gives the same error: about the grub_device.
> > I tried adding "grub_device: false" after the type: disk, same
> > error. I tried adding after device: disk0 same error.
>
> I'e just tried this and it works for me. Does it work for you?
>
> #cloud-config
> autoinstall:
> ...
>   storage:
>     version: 1
>     layout:
>       name: direct
>     grub:
>       install_devices:
>         - disk0
>     swap:
>       size: 0
>     config:
>       - id: disk0
>         type: disk
>         match:
>           size: largest
>         ptable: mbr
>         wipe: superblock
>       - 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: "/"
> ...
>
> --
> 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/20210125/c9e0d5c6/attachment.html>


More information about the ubuntu-users mailing list