Issue install 20.04 with autoinstall
Jerry Geis
jerry.geis at gmail.com
Mon Jan 25 18:12:58 UTC 2021
On Mon, Jan 25, 2021 at 12:56 PM Tom H <tomh0665 at gmail.com> wrote:
> 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: "/"
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
HI Tom,
I am "starting" with a previous linux install. That is what the fdisk is
from above.
I am editing the /etc/grub.d/40_custom - adding my menu, setting the
default /etc/default/grub to run my custom install and of course all my
values are set
for autoinstall, ds=XXX ip=dhcp url=XXX - this settings seem fine as its
downloading my file , and downloading the live-server iso (I see all that
on screen and have verified in the installer log).
Thanks,
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20210125/c29fed3f/attachment.html>
More information about the ubuntu-users
mailing list