The following features are added to the tools / library:
ebgparted.c:
Enhance block device scan algorithm:
* If the user manually changes the naming scheme of loopback devices,
detection of partitions breaks. The following gives an example case:
# Create a device node /dev/hdq equivalent to /dev/loop8
mknod /dev/hdq b 7 8
# Setup a loopback device with /home/user/testdisk.img
losetup /dev/hdq /home/user/testdisk.img
Some systems automatically create a /dev/loop8 device, others don't.
On systems, where /dev/loop8 is missing, ebgpart.c probes the file
/sys/block/loop8
and assumes, the file /dev/loop8 with the same basename exists, which
will fail.
The new algorithm also reads /sys/block/loop8/dev, which contains the
major and minor revision of the node and then looks inside /dev for
a matching node, no matter what its name is.
*Note*: It is not recommended to manually change the naming scheme,
since other tools also get into problems, for example 'lsblk', which
will not correctly print partitions.
bg_printenv:
Add the -v option according to bg_setenv to get info/debug messages
from the underlying libs.
Signed-off-by: Andreas Reichel <[email protected]>
Reichel Andreas (2):
bg_utils: Fix detection for customized loop devs
bg_printenv: Add -v option for verbosity
tools/bg_setenv.c | 4 ++-
tools/ebgpart.c | 86 ++++++++++++++++++++++++++++++++++++++++++++++---------
tools/ebgpart.h | 3 +-
3 files changed, 77 insertions(+), 16 deletions(-)
--
2.11.0
--
You received this message because you are subscribed to the Google Groups "EFI
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/efibootguard-dev/20170710124051.1413-1-andreas.reichel.ext%40siemens.com.
For more options, visit https://groups.google.com/d/optout.