Uki changes for iso/install (#156)

This commit is contained in:
Itxaka
2023-09-22 14:56:26 +02:00
committed by GitHub
parent a1710b8589
commit 5412c76ebb
6 changed files with 187 additions and 166 deletions

View File

@@ -11,6 +11,13 @@ func GetCloudInitPaths() []string {
return []string{"/system/oem", "/oem/", "/usr/local/cloud-config/"}
}
// GenericKernelDrivers retusn a list of generic kernel drivers to insmod during uki mode
// as they could be useful for a lot of situations
func GenericKernelDrivers() []string {
return []string{"virtio", "ata_piix", "cdrom", "ext4", "iso9660", "usb_storage", "ahci",
"virtio_blk", "virtio_scsi", "virtio_net", "nvme", "overlay", "libata", "sr_mod", "simpledrm"}
}
var ErrAlreadyMounted = errors.New("already mounted")
const (