[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installation tests with GRUB on GPT disks



On 05/16/2018 07:11 PM, John Paul Adrian Glaubitz wrote:
I'll give it a try on my T5220 with kernel and initrd from the image you provided today and report back.

Thanks. We should definitely test this before committing those changes.

Unfortunately booting the CDROM kernel and initrd via GRUB2 over the network did not work as expected by me:

After the installer started it wants to load its components from the non-existing CDROM, of course... :-(

There is no command line switch for the installer (kernel) that will make it behave like a netboot installer, right?

So I wrote the image to a CDRW and started the installation from there.

The partitioning worked correctly with the added snippet and created a layout that resembles the recipe without the snippet:

```
~ # fdisk -l Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

/lib/partman/recipes-sparc64 # nano 30atomic

## Added this part on top ##
## 10 10 10 free
##	$iflabel{ gpt }
##	$reusemethod{ }
##	method{ biosgrub } .

/lib/partman/recipes-sparc64 # archdetect
sparc64/sun4v_sun

## Partitioning took place ##

/lib/partman/recipes-sparc64 # fdisk -l
Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Geometry: 255 heads, 63 sectors/track, 19457 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: sun

Device         Start       End   Sectors   Size Id Type         Flags
/dev/sda1          0    192779    192780  94.1M  1 Boot
/dev/sda2     192780 296656289 296463510 141.4G 83 Linux native
/dev/sda3          0 312576704 312576705   149G  5 Whole disk
/dev/sda4  296656290 312576704  15920415   7.6G 82 Linux swap
```

If it creates the bios_grub "partition" on your gpt capable machine with the snippet included, it could be save for inclusion in d-i/partman-auto.

Frank


Reply to: