首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ubuntu自动安装- UEFI

Ubuntu自动安装- UEFI
EN

Ask Ubuntu用户
提问于 2020-10-15 11:25:42
回答 1查看 2.6K关注 0票数 3

我们希望使用新的ubuntu方法自动安装。UEFI启动工作有一些问题。我用普通安装程序和EFI方法安装了UbuntuServer20.04,然后获得了以下用户数据文件。

代码语言:javascript
复制
#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中。我需要运行一些后置命令才能让EFI正常工作吗?

提前谢谢。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2020-10-19 15:32:39

在安装过程中,您可能会遇到curtin重新排序UEFI引导顺序的问题。它使当前引导方法成为引导顺序中的第一个。有一个选项可以禁用此选项。

将此片段包含在storage文件的user-data部分将禁用UEFI重新排序。

代码语言:javascript
复制
  storage:
    grub:
      reorder_uefi: False

我遇到过从PXE启动的情况。安装后,我会再次从PXE启动,而不是从硬盘启动。我不知道为什么你会在UEFI壳中结束。

票数 5
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1284015

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档