Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add partition preservation #321

Merged
merged 1 commit into from Aug 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 17 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Expand Up @@ -36,16 +36,15 @@ required-features = ["rdcore"]
[profile.release]
lto = true

[target.'cfg(target_arch = "s390x")'.dependencies]
gptman = { version = "^0.6", default-features = false }

[dependencies]
bincode = "^1.3"
byte-unit = ">= 3.1.0, < 5.0.0"
clap = "^2.33"
cpio = "^0.2"
error-chain = { version = "^0.12", default-features = false }
flate2 = "^1.0"
glob = "^0.3"
gptman = { version = "^0.6", default-features = false }
hex = "^0.4"
libc = "^0.2"
nix = ">= 0.17, < 0.19"
Expand All @@ -57,6 +56,7 @@ serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
tempfile = "^3.1"
url = "^2.1"
uuid = { version = "^0.8", features = ["v4"] }
walkdir = "^2.3"
xz2 = "^0.1"

Expand Down
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -107,6 +107,13 @@ line.
CoreOS image is being installed on. Optional; defaults to `metal`.
Normally this should be specified only if installing inside a virtual
machine.
* `coreos.inst.save_partlabel` - Comma-separated labels of partitions to
preserve during the install. Glob-style wildcards are permitted. The
specified partitions need not exist. Optional.
* `coreos.inst.save_partindex` - Comma-separated indexes of partitions to
preserve during the install. Ranges (`m-n`) are permitted, and either `m`
or `n` can be omitted. The specified partitions need not exist.
Optional.
* `coreos.inst.insecure` - Permit the OS image to be unsigned. Optional.
* `coreos.inst.skip_reboot` - Don't reboot after installing. Optional.

Expand Down
2 changes: 2 additions & 0 deletions scripts/coreos-installer-service
Expand Up @@ -89,6 +89,8 @@ fi
copy_arg coreos.inst.image_url --image-url
copy_arg coreos.inst.platform_id --platform
copy_arg coreos.inst.stream --stream
copy_arg coreos.inst.save_partlabel --save-partlabel
copy_arg coreos.inst.save_partindex --save-partindex

# Insecure boolean
if karg_bool coreos.inst.insecure; then
Expand Down