[iso] remove Ubuntu's splash screen for persistent drives

* This is accomplished by removing the 'maybe-ubiquity' option
* UEFI only
This commit is contained in:
Pete Batard 2020-06-11 13:52:14 +01:00
parent e554d2b4e0
commit 68d42d4153
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
3 changed files with 10 additions and 6 deletions

View file

@ -319,6 +319,10 @@ static void fix_config(const char* psz_fullpath, const char* psz_path, const cha
// somewhere in their kernel options and use 'persistent' as keyword.
uprintf(" Added 'persistent' kernel option");
modified = TRUE;
// Also remove Ubuntu's "maybe-ubiquity" to avoid splash screen (GRUB only)
if ((props->is_grub_cfg) && replace_in_token_data(src, "linux",
"maybe-ubiquity", "", TRUE))
uprintf(" Removed 'maybe-ubiquity' kernel option");
} else if (replace_in_token_data(src, props->is_grub_cfg ? "linux" : "append",
"boot=live", "boot=live persistence", TRUE) != NULL) {
// Debian & derivatives are assumed to use 'boot=live' in