Read /etc/fstab to determine data partition
Rather than hard-code the GPT partition label into the `init-storage` and `factory-reset` scripts, these now determine the block device by reading `/etc/fstab` and using the device specified for `/var`.
This commit is contained in:
@@ -45,6 +45,7 @@ files_runtime_filetrans(aimee_storinit_t, aimee_storinit_runtime_t, dir)
|
||||
|
||||
corecmd_exec_bin(aimee_storinit_t)
|
||||
|
||||
files_read_etc_files(aimee_storinit_t)
|
||||
storage_raw_read_fixed_disk(aimee_storinit_t)
|
||||
fstools_domtrans(aimee_storinit_t)
|
||||
mount_exec(aimee_storinit_t)
|
||||
@@ -201,6 +202,7 @@ allow aimee_factory_reset_t self:fifo_file rw_fifo_file_perms;
|
||||
corecmd_exec_bin(aimee_factory_reset_t)
|
||||
dev_read_sysfs(aimee_factory_reset_t)
|
||||
kernel_read_system_state(aimee_factory_reset_t)
|
||||
files_read_etc_files(aimee_factory_reset_t)
|
||||
fstools_exec(aimee_factory_reset_t)
|
||||
fstools_manage_runtime_files(aimee_factory_reset_t)
|
||||
miscfiles_read_localization(aimee_factory_reset_t)
|
||||
|
||||
Reference in New Issue
Block a user