Boom¶
Boom boot manager — creates and manages boot entries, profiles, and host profiles for GRUB2 and systemd-boot. Used for snapshot-based boot environments (boot from LVM snapshots, etc.).
sts.boom.entry
¶
Boom boot entry management.
BoomEntry
pydantic-model
¶
Bases: BoomBase
Boom boot entry representation.
Show JSON schema:
{
"$defs": {
"BoomConfig": {
"additionalProperties": false,
"description": "Boom configuration.",
"properties": {
"debug": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Debug"
},
"boot_dir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Boot Dir"
},
"verbose": {
"default": 0,
"title": "Verbose",
"type": "integer"
}
},
"title": "BoomConfig",
"type": "object"
}
},
"description": "Boom boot entry representation.",
"properties": {
"config": {
"$ref": "#/$defs/BoomConfig"
},
"boot_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Boot Id"
},
"entry_title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Entry Title"
},
"param_version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Param Version"
},
"profile_osid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Osid"
},
"entry_kernel": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Entry Kernel"
},
"entry_initramfs": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Entry Initramfs"
},
"param_rootdev": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Param Rootdev"
},
"param_rootlv": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Param Rootlv"
},
"entry_options": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Entry Options"
},
"entry_machineid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Entry Machineid"
},
"param_subvolpath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Param Subvolpath"
},
"param_subvolid": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Param Subvolid"
},
"entry_entrypath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Entry Entrypath"
},
"entry_entryfile": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Entry Entryfile"
},
"entry_readonly": {
"default": false,
"title": "Entry Readonly",
"type": "boolean"
}
},
"title": "BoomEntry",
"type": "object"
}
Config:
populate_by_name:Trueextra:ignore
Fields:
-
config(BoomConfig) -
boot_id(str | None) -
title(str | None) -
version(str | None) -
profile_id(str | None) -
linux(str | None) -
initramfs(str | None) -
root_device(str | None) -
root_lv(str | None) -
options(str | None) -
machine_id(str | None) -
btrfs_subvol_path(str | None) -
btrfs_subvol_id(int | None) -
entry_path(str | None) -
entry_file(str | None) -
readonly(bool)
Source code in sts_libs/src/sts/boom/entry.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 | |
clone(*, title=None, version=None, profile_id=None, root_device=None, root_lv=None, linux=None, initramfs=None, btrfs_subvol=None, add_opts=None, del_opts=None, mount=None, swap=None, backup=False, update=False, no_fstab=False)
¶
Clone this boot entry with optional overrides.
mount format: what:where:fstype:options.
swap format: what:options.
Example
new_entry = entry.clone(title='System Snapshot 2', root_lv='vg00/lvol0-snap2')
Source code in sts_libs/src/sts/boom/entry.py
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 | |
create(*, title=None, version=None, profile_id=None, root_device=None, root_lv=None, linux=None, initramfs=None, btrfs_subvol=None, add_opts=None, del_opts=None, mount=None, swap=None, backup=False, update=False, no_fstab=False)
¶
Create boot entry.
mount format: what:where:fstype:options.
swap format: what:options.
Example
entry.create(title='System Snapshot', root_lv='vg00/lvol0-snap', backup=True).assert_ok()
Source code in sts_libs/src/sts/boom/entry.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | |
delete()
¶
Delete boot entry.
Source code in sts_libs/src/sts/boom/entry.py
228 229 230 231 232 233 234 235 236 | |
list_items(boot_id=None, profile_id=None, version=None, title=None, root_device=None, root_lv=None, options=None)
¶
List boot entries matching the given filter criteria.
Source code in sts_libs/src/sts/boom/entry.py
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 | |
refresh_report()
¶
Refresh entry data from the system.
Source code in sts_libs/src/sts/boom/entry.py
51 52 53 54 55 56 | |
show()
¶
Show boot entry configuration.
Source code in sts_libs/src/sts/boom/entry.py
325 326 327 328 329 330 331 | |
sts.boom.profile
¶
Boom OS profile management.
BoomProfile
pydantic-model
¶
Bases: BoomBase
Boom OS profile representation.
Show JSON schema:
{
"$defs": {
"BoomConfig": {
"additionalProperties": false,
"description": "Boom configuration.",
"properties": {
"debug": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Debug"
},
"boot_dir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Boot Dir"
},
"verbose": {
"default": 0,
"title": "Verbose",
"type": "integer"
}
},
"title": "BoomConfig",
"type": "object"
}
},
"description": "Boom OS profile representation.",
"properties": {
"config": {
"$ref": "#/$defs/BoomConfig"
},
"os_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Os Id"
},
"profile_osname": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Osname"
},
"profile_osshortname": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Osshortname"
},
"profile_osversion": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Osversion"
},
"profile_osversion_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Osversion Id"
},
"profile_unamepattern": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Unamepattern"
},
"profile_kernelpattern": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Kernelpattern"
},
"profile_initrdpattern": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Initrdpattern"
},
"profile_lvm2opts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Lvm2Opts"
},
"profile_btrfsopts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Btrfsopts"
},
"profile_options": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Options"
},
"profile_profilepath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Profile Profilepath"
}
},
"title": "BoomProfile",
"type": "object"
}
Config:
populate_by_name:Trueextra:ignore
Fields:
-
config(BoomConfig) -
os_id(str | None) -
name(str | None) -
short_name(str | None) -
version(str | None) -
version_id(str | None) -
uname_pattern(str | None) -
kernel_pattern(str | None) -
initrd_pattern(str | None) -
lvm_opts(str | None) -
btrfs_opts(str | None) -
options(str | None) -
profile_path(str | None)
Source code in sts_libs/src/sts/boom/profile.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |
clone(name=None, short_name=None, version=None, version_id=None, uname_pattern=None, kernel_pattern=None, initrd_pattern=None, lvm_opts=None, btrfs_opts=None, options=None)
¶
Clone this OS profile with optional overrides.
Example
new_profile = profile.clone(version='37', version_id='37', uname_pattern='fc37')
Source code in sts_libs/src/sts/boom/profile.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | |
create(*, name=None, short_name=None, version=None, version_id=None, uname_pattern=None, from_host=False, os_release=None, kernel_pattern=None, initrd_pattern=None, lvm_opts=None, btrfs_opts=None, options=None)
¶
Create OS profile.
uname_pattern is required unless from_host is set, in which case
OS identity is derived from the running host. os_release overrides
the default /etc/os-release path.
Example
profile.create(
name='Fedora',
short_name='fedora',
version='36',
version_id='36',
uname_pattern='fc36',
).assert_ok()
Source code in sts_libs/src/sts/boom/profile.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | |
delete()
¶
Delete OS profile.
Source code in sts_libs/src/sts/boom/profile.py
164 165 166 167 168 169 170 171 172 | |
list_items(os_id=None, name=None, short_name=None, version=None, version_id=None, options=None)
¶
List OS profiles matching the given filter criteria.
Source code in sts_libs/src/sts/boom/profile.py
248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | |
refresh_report()
¶
Refresh profile data from the system.
Source code in sts_libs/src/sts/boom/profile.py
48 49 50 51 52 53 | |
show()
¶
Show OS profile configuration.
Source code in sts_libs/src/sts/boom/profile.py
240 241 242 243 244 245 246 | |
sts.boom.host
¶
Boom host profile management.
BoomHost
pydantic-model
¶
Bases: BoomBase
Boom host profile representation.
Show JSON schema:
{
"$defs": {
"BoomConfig": {
"additionalProperties": false,
"description": "Boom configuration.",
"properties": {
"debug": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Debug"
},
"boot_dir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Boot Dir"
},
"verbose": {
"default": 0,
"title": "Verbose",
"type": "integer"
}
},
"title": "BoomConfig",
"type": "object"
}
},
"description": "Boom host profile representation.",
"properties": {
"config": {
"$ref": "#/$defs/BoomConfig"
},
"host_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Id"
},
"host_hostname": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Hostname"
},
"short_name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Short Name"
},
"host_osid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Osid"
},
"host_machineid": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Machineid"
},
"host_kernelpattern": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Kernelpattern"
},
"host_initrdpattern": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Initrdpattern"
},
"host_lvm2opts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Lvm2Opts"
},
"host_btrfsopts": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Btrfsopts"
},
"host_options": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Options"
},
"host_hostprofilepath": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Hostprofilepath"
},
"host_label": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Host Label"
}
},
"title": "BoomHost",
"type": "object"
}
Config:
populate_by_name:Trueextra:ignore
Fields:
-
config(BoomConfig) -
host_id(str | None) -
name(str | None) -
short_name(str | None) -
profile_id(str | None) -
machine_id(str | None) -
kernel_pattern(str | None) -
initramfs_pattern(str | None) -
lvm_opts(str | None) -
btrfs_opts(str | None) -
options(str | None) -
host_profile_path(str | None) -
host_label(str | None)
Source code in sts_libs/src/sts/boom/host.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | |
clone(name=None, short_name=None, profile_id=None, machine_id=None, kernel_pattern=None, initramfs_pattern=None, lvm_opts=None, btrfs_opts=None, options=None, label=None)
¶
Clone this host profile with optional overrides.
Example
new_host = host.clone(name='webserver2', machine_id='722f38fd887d41dea7eb3403b2730a77')
Source code in sts_libs/src/sts/boom/host.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | |
create(name=None, short_name=None, profile_id=None, machine_id=None, kernel_pattern=None, initramfs_pattern=None, lvm_opts=None, btrfs_opts=None, options=None)
¶
Create host profile.
Example
host.create(
name='webserver', profile_id='3fc389b', machine_id='611f38fd887d41dea7eb3403b2730a76'
).assert_ok()
Source code in sts_libs/src/sts/boom/host.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
delete()
¶
Delete host profile.
Source code in sts_libs/src/sts/boom/host.py
142 143 144 145 146 147 148 149 150 | |
edit(name=None, short_name=None, profile_id=None, machine_id=None, kernel_pattern=None, initramfs_pattern=None, lvm_opts=None, btrfs_opts=None, options=None)
¶
Edit host profile.
Example
host.edit(name='webserver-updated', options='root=/dev/vg00/lvol0 ro quiet').assert_ok()
Source code in sts_libs/src/sts/boom/host.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | |
list_items(host_id=None, name=None, short_name=None, profile_id=None, machine_id=None, options=None)
¶
List host profiles matching the given filter criteria.
Source code in sts_libs/src/sts/boom/host.py
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 | |
refresh_report()
¶
Refresh host profile data from the system.
Source code in sts_libs/src/sts/boom/host.py
48 49 50 51 52 53 | |
show()
¶
Show host profile configuration.
Source code in sts_libs/src/sts/boom/host.py
270 271 272 273 274 275 276 | |