[ext2fs] automated persistence set up for Debian Live & Ubuntu

* Only UEFI boot for now (GRUB) & requires a post 2019.07.26 ISO for Ubuntu.
* This adds the relevant persistence/persistent kernel option to the conf file, sets the
  expected volume label and creates a /persistence.conf file where needed.
* Also improve token parsing by ensuring a token is followed by at least one white space.
This commit is contained in:
Pete Batard 2019-08-02 17:57:10 +01:00
parent 307e2f7075
commit fcb15ab6e9
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
11 changed files with 331 additions and 23 deletions

View file

@ -49,6 +49,7 @@
#define FP_DUPLICATE_METADATA 0x00000008
#define FP_LARGE_FAT32 0x00010000
#define FP_NO_BOOT 0x00020000
#define FP_CREATE_PERSISTENCE_CONF 0x00040000
#define FILE_FLOPPY_DISKETTE 0x00000004
@ -359,7 +360,6 @@ typedef struct {
} ClusterSize[FS_MAX];
} RUFUS_DRIVE_INFO;
extern RUFUS_DRIVE_INFO SelectedDrive;
extern uint64_t persistence_size;
extern DWORD partition_index[3];
BOOL SetAutoMount(BOOL enable);