celestial_tools.client.rootfs Python Module Documentation¶
-
celestial_tools.client.rootfs.
dual_boot_update
(rootfs_file: str, dev_1: str, dev_2: str, cmdline_file: str = '/boot/cmdline', expected_rootfs_format: str = None)¶ Update the dual-rootfs system with the provided parameters
Parameters: - rootfs_file – The filesystem to be installed
- expected_rootfs_format – The expected rootfs format
- cmdline_file – The location of the boot partition’s commandline file
- dev_1 – the first rootfs device node in the dual-boot configuration
- dev_2 – the second rootfs device node in the dual-boot configuration
-
celestial_tools.client.rootfs.
get_boot_device
(cmdline_file: str = '/proc/cmdline') → str¶ Retrieve the “root” parameter of “/proc/cmdline”
Parameters: cmdline_file – The location of the cmdline file (that we booted with) Returns: the “root” parameter of “/proc/cmdline”
-
celestial_tools.client.rootfs.
get_fs_types
(device_node: str)¶ Fetch a list of possible filesystem types
Parameters: device_node – The device node to query Returns: a list of strings with the possible filesystem type, else None
-
celestial_tools.client.rootfs.
install
(rootfs_file: str, device_node: str, block_size_kb: int = 10, expected_fs: str = None)¶ Install rootfs_file into device_node
Parameters: - rootfs_file – Location of the new rootfs to install
- device_node – Device node where the new rootfs_file will be installed
- block_size_kb – Block size passed to dd utility
- expected_fs – Expected filesystem format
-
celestial_tools.client.rootfs.
set_boot_device
(boot_device: str, cmdline_file: str = '/boot/cmdline')¶ Update the “root” parameter of the “cmdline_file” to “boot_device”
Parameters: - boot_device – The location of the new boot device node
- cmdline_file – The location of the boot partition’s commandline file