我们想使用新的 ubuntu 自动安装方法Autoinstall。让 UEFI 启动工作存在一些问题。我已经使用普通安装程序和 EFI 方法安装了 Ubuntu Server 20.04,然后获取了以下用户数据文件。
#cloud-config
autoinstall:
apt:
geoip: true
preserve_sources_list: false
primary:
- arches: [amd64, i386]
uri: http://de.archive.ubuntu.com/ubuntu
- arches: [default]
uri: http://ports.ubuntu.com/ubuntu-ports
identity: {hostname: zsrv, password: $6$AYtLXyyVZAea2aLJ$UQxW1cz2vWWNn.17.3QYH5TxZqIMGoLJCpqbBTfClhUKxqouYn7/Yc5Jsq.bCeK0VDLPxbL6xzfJ0xqTb6MLk.,
realname: root, username: root}
keyboard: {layout: us, toggle: null, variant: ''}
locale: C
network:
ethernets:
enp1s0: {dhcp4: true}
version: 2
ssh:
allow-pw: true
authorized-keys: []
install-server: true
storage:
config:
- {ptable: gpt, wipe: superblock, preserve: false, name: '', grub_device: false,
type: disk, id: disk-vda}
- {ptable: gpt, wipe: superblock-recursive, preserve: false, name: '',
grub_device: false, type: disk, id: disk-vdb}
- {device: disk-vda, size: 536870912, wipe: superblock, flag: boot, number: 1,
preserve: false, grub_device: true, type: partition, id: partition-0}
- {fstype: fat32, volume: partition-0, preserve: false, type: format, id: format-0}
- {device: disk-vda, size: 1073741824, wipe: superblock, flag: '', number: 2,
preserve: false, type: partition, id: partition-1}
- {fstype: ext4, volume: partition-1, preserve: false, type: format, id: format-1}
- {device: disk-vdb, size: 24696061952, wipe: superblock, flag: '', number: 1,
preserve: false, type: partition, id: partition-4}
- {device: disk-vda, size: 24696061952, wipe: superblock, flag: '', number: 3,
preserve: false, type: partition, id: partition-5}
- name: md0
raidlevel: raid1
devices: [partition-4, partition-5]
spare_devices: []
preserve: false
type: raid
id: raid-0
- {fstype: ext4, volume: raid-0, preserve: false, type: format, id: format-4}
- {device: format-4, path: /, type: mount, id: mount-4}
- {device: format-1, path: /boot, type: mount, id: mount-1}
- {device: format-0, path: /boot/efi, type: mount, id: mount-0}
version: 1
系统安装运行,但在下一次启动时,我被转储到 UEFI shell 中。是否需要运行一些安装后命令才能使 EFI 正常工作?
提前致谢。
您可能会遇到curtin在安装过程中重新排序 UEFI 引导顺序的问题。它使当前引导方法成为引导顺序中的第一个。有一个选项可以禁用此功能。
storage
在文件部分中包含此代码段user-data
将禁用 UEFI 重新排序。我遇到了从 PXE 启动的问题。安装后,我最终再次从 PXE 引导,而不是从硬盘驱动器引导。我不确定你为什么最终会进入 UEFI shell。