我正在尝试为ubuntu22.04.1创建一个自动安装。但每次我试图引导后,它的重新启动,它永远不会停止。没有错误信息,我也不知道出了什么问题。用户数据文件如下所示:
#cloud-config
autoinstall:
apt:
disable_components: []
geoip: true
preserve_sources_list: false
primary:
- arches:
- amd64
- i386
uri: http://archive.ubuntu.com/ubuntu
- arches:
- default
uri: http://ports.ubuntu.com/ubuntu-ports
identity:
hostname: edgedevice
password: $6$xU$HazGI4kXe7UxWc9xpP1rGRQsCc1d7a488fYeVvpw0pkkV3lWnNduZw17D7yGqcxS5cwgb49/W3PM7Kxq1BSSS/
realname: edgeconnector
username: ec
kernel:
package: linux-generic
keyboard:
layout: ch
toggle: null
variant: de_sundeadkeys
locale: en_US.UTF-8
network:
ethernets:
enp1s0:
dhcp4: true
enp2s0:
dhcp4: true
version: 2
ssh:
allow-pw: true
authorized-keys: []
install-server: false
storage:
layout:
name: direct
updates: security
version: 1为了创建一个新的自动安装,我使用了这自动安装生成器.
如果我将存储配置更改为以下内容,则会出现错误"autoinstall没有创建所需的引导加载程序分区“
storage:
config:
- ptable: gpt
serial: mSATA_mini_3ME3_BCA12102030330005
wwn: '0x524693f2ca251959'
path: /dev/sda
wipe: superblock
preserve: false
name: ''
grub_device: false
type: disk
id: disk-sda
- device: disk-sda
size: 1127219200
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-sda
size: 4294967296
wipe: superblock
flag: swap
number: 2
preserve: false
grub_device: false
type: partition
id: partition-1
- fstype: swap
volume: partition-1
preserve: false
type: format
id: format-1
- path: ''
device: format-1
type: mount
id: mount-1
- device: disk-sda
size: 26591887360
wipe: superblock
flag: ''
number: 3
preserve: false
grub_device: false
type: partition
id: partition-2
- fstype: ext4
volume: partition-2
preserve: false
type: format
id: format-2
- path: /
device: format-2
type: mount
id: mount-2
- path: /boot/efi
device: format-0
type: mount
id: mount-0
swap:
swap: 0发布于 2022-08-22 14:17:17
与此同时,我设法解决了这个问题。首先,如果您在UEFI引导它时有类似的问题,那么就不会出现"autoinstall没有创建所需分区“的错误。其次,就像描述的这里一样,如果添加grub: reorder_uefi: False,对我来说,它就会随着无尽的重新启动而停止。
https://askubuntu.com/questions/1424248
复制相似问题