AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1284015
Accepted
Fang
Fang
Asked: 2020-10-16 03:25:42 +0800 CST2020-10-16 03:25:42 +0800 CST 2020-10-16 03:25:42 +0800 CST

Ubuntu 自动安装 - UEFI

  • 772

我们想使用新的 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 正常工作?

提前致谢。

boot preseed uefi
  • 1 1 个回答
  • 1882 Views

1 个回答

  • Voted
  1. Best Answer
    Andrew Lowther
    2020-10-20T07:32:39+08:002020-10-20T07:32:39+08:00

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

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

      storage:
        grub:
          reorder_uefi: False
    

    我遇到了从 PXE 启动的问题。安装后,我最终再次从 PXE 引导,而不是从硬盘驱动器引导。我不确定你为什么最终会进入 UEFI shell。

    • 4

相关问题

  • grub 菜单中的“恢复”选项是什么?

  • 用户如何避免在启动时输入密码?[关闭]

  • 更改 Wubi 的启动顺序

  • 如何在 Ubuntu 启动时显示或隐藏启动消息?

  • 如何避免启动时出现“S to Skip”消息?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve