GRUB_CMDLINE_LINUX_DEFAULT keeps boot parameters from installer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I use ubuntu-
```yaml
#cloud-config
autoinstall:
version: 1
locale: en_US.UTF-8
keyboard:
layout: fr
variant: ""
apt:
preserve_
primary:
- arches: [amd64]
uri: "http://
disable_suites: [backports]
# Unfortunately, disable_components option is too recent to be supported
# on Ubuntu 20.04.
#
# See: https:/
#
disable_
geoip: false
update: no # better to update during postinstall stage.
packages: []
network:
network:
version: 2
ethernets:
nics:
match:
name: 'ens*'
dhcp4: true
storage:
swap:
size: 0 # No swap, will created (or not) by cloud-init.
config:
- id: disk-root
type: disk
ptable: gpt
path: /dev/sda
wipe: superblock
preserve: false
name: disk-root
- id: part-grub
type: partition
number: 1
device: disk-root
size: 1MB
wipe: superblock
preserve: false
flag: bios_grub
name: part-grub
- id: part-root
type: partition
number: 2
device: disk-root
size: -1 # The remaining space.
wipe: superblock
preserve: false
name: part-root
- id: fs-root
type: format
fstype: ext4
preserve: false
volume: part-root
label: fs-root
- id: mount-root
type: mount
spec: "LABEL=fs-root"
path: /
device: fs-root
options: "noatime,
# Without this setting, the default value is true according to my research
# and the option GRUB_CMDLINE_
# is set to the same boot options as the installer, ie something like
# "autoinstall ds=nocloud-
#grub:
# replace_
ssh:
install-server: yes
identity:
username: ubuntu
password: $6$b3fc74609976
hostname: template-
user-data:
timezone: "Europe/Paris"
hostname: template-
```
After the installation, the machine has this line in the file /etc/default/grub:
```
GRUB_CMDLINE_
```
This is exactly the boot parameters I use during the installation (via packer). To avoid this and keep the default value of GRUB_CMDLINE_
```
grub:
replace_
```
In this case, I have `GRUB_CMDLINE_
Is it normal?
Regards.
Curtin copies kernel command line arguments after --- to the installed system. So if you put the "autoinstall ds=nocloud- net;seedfrom=http:// 192.168. 221.149: 8449/" content before the --- then it should not be configured for the installed system. What is the complete command line you are passing to packer?