Skip to content

Commit

Permalink
remove original ROOT label through Ignition
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Campion committed Feb 28, 2024
1 parent 74c9708 commit d6c865b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
15 changes: 5 additions & 10 deletions kola/tests/misc/tang.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ import (
)

const (
// In the Ignition config below, we create a partition labeled ROOT on a second disk.
// As advised in the Flatcar documentation, we then remove the ROOT label from the existing
// root partition, which is vda9 in the QEMU disk image.
IgnitionConfigRootTang = `{
"ignition": {
"config": {},
Expand Down Expand Up @@ -63,19 +60,17 @@ const (
}
],
"filesystems": [
{
"device": "/dev/disk/by-partlabel/ROOT",
"format": "none",
"wipeFilesystem": true
},
{
"device": "/dev/disk/by-id/dm-name-rootencrypted",
"format": "ext4",
"label": "ROOT"
}
]
},
"systemd": {
"units": [{
"name": "remove-root-label.service",
"enabled": true,
"contents": "[Service]\nType=oneshot\nExecStart=wipefs -a /dev/vda9\n[Install]\nWantedBy=multi-user.target"
}]
}
}`

Expand Down
15 changes: 5 additions & 10 deletions kola/tests/misc/tpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ import (
)

const (
// In the Ignition config below, we create a partition labeled ROOT on a second disk.
// As advised in the Flatcar documentation, we then remove the ROOT label from the existing
// root partition, which is vda9 in the QEMU disk image.
IgnitionConfigRootTPM = `{
"ignition": {
"config": {},
Expand Down Expand Up @@ -50,19 +47,17 @@ const (
}
],
"filesystems": [
{
"device": "/dev/disk/by-partlabel/ROOT",
"format": "none",
"wipeFilesystem": true
},
{
"device": "/dev/disk/by-id/dm-name-rootencrypted",
"format": "ext4",
"label": "ROOT"
}
]
},
"systemd": {
"units": [{
"name": "remove-root-label.service",
"enabled": true,
"contents": "[Service]\nType=oneshot\nExecStart=wipefs -a /dev/vda9\n[Install]\nWantedBy=multi-user.target"
}]
}
}`

Expand Down

0 comments on commit d6c865b

Please sign in to comment.