(v)FAT is still the most popular FS on removable medias like USB pen
drives, so we need to cope with its legacy..
So, rename the label that we look for again to PROXMOX-AIS, as that
still should allow admins to better recognize what this might be for
by having the "Proxmox" context and the rest is just hard to get
sensible meaning in, so do not bother to invent elaborate explanations
of why AIS is a good choice, it isn't but it's about the best thing
that one can do in these constraints.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
/// The behavior of how to fetch an answer file must be set with the '--fetch-from', parameter. The
/// answer file can be{n}:
/// * integrated into the ISO itself ('iso'){n}
-/// * needs to be present in a partition / file-system with the label 'PROXMOX-INST-SRC'
-/// ('partition'){n}
+/// * needs to be present in a partition / file-system with the label 'PROXMOX-AIS' (Proxmox
+/// Automated Installer Source) ('partition'){n}
/// * get requested via an HTTP Post request ('http').
///
/// The URL for the HTTP mode can be defined for the ISO with the '--url' argument. If not present,
static ANSWER_FILE: &str = "answer.toml";
static ANSWER_MP: &str = "/mnt/answer";
-static PARTLABEL: &str = "proxmox-inst-src";
+// FAT can only handle 11 characters, so shorten Automated Installer Source to AIS
+static PARTLABEL: &str = "proxmox-ais";
static SEARCH_PATH: &str = "/dev/disk/by-label";
pub struct FetchFromPartition;
bail!("Could not detect upper or lower case labels for '{partlabel_source}'");
}
-/// Will search and mount a partition/FS labeled PARTLABEL (proxmox-inst-src) in lower or uppercase
+/// Will search and mount a partition/FS labeled PARTLABEL (proxmox-ais) in lower or uppercase
/// to ANSWER_MP
fn mount_proxmoxinst_part() -> Result<String> {
if let Ok(true) = check_if_mounted(ANSWER_MP) {