1
0
mirror of https://github.com/systemd/systemd.git synced 2025-06-02 17:07:47 +03:00
Lennart Poettering c56be2c294 bootctl: add new --print-root-device option
We already have this nice code in system that determines the block
device backing the root file system, but it's only used internally in
systemd-gpt-generator. Let's make this more accessible and expose it
directly in bootctl.

It doesn't fit immediately into the topic of bootctl, but I think it's
close enough and behaves very similar to the existing "bootctl
--print-boot-path" and "--print-esp-path" tools.

If --print-root-device (or -R) is specified once, will show the block device
backing the root fs, and if specified twice (probably easier: -RR) it
will show the whole block device that block device belongs to in case it
is a partition block device.

Suggested use:

        # cfdisk `bootctl -RR`

To get access to the partition table, behind the OS install, for
whatever it might be.
2023-02-21 18:19:38 +01:00
..
2022-10-14 15:56:58 +02:00
2022-06-28 13:10:05 +02:00
2022-06-28 16:05:31 +02:00
2022-11-16 00:12:16 +01:00
2023-01-15 17:19:10 +00:00
2023-02-09 14:30:43 +01:00
2022-06-28 13:10:05 +02:00
2023-02-12 00:54:07 +01:00
2022-06-28 13:10:05 +02:00
2022-12-07 10:26:31 +01:00
2023-02-20 13:51:46 +01:00
2022-03-07 15:32:22 +09:00
2021-01-04 11:01:17 +00:00
2021-06-30 23:33:00 +09:00
2023-01-19 23:11:36 +09:00
2022-01-06 22:20:11 +09:00
2021-11-30 13:54:27 +01:00
2023-01-20 15:32:16 +09:00
2022-08-23 12:14:58 +02:00
2022-08-28 00:03:36 +09:00
2022-03-21 20:06:13 +00:00
2023-01-20 15:32:16 +09:00
2023-02-09 14:30:43 +01:00
2020-12-16 17:21:48 +01:00