Skip to content

Commit c0ea9d5

Browse files
authored
Merge pull request #193 from desultory/dev
color log detected btrfs root subvol
2 parents 658ed14 + b7ff20f commit c0ea9d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ugrd/fs/btrfs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
__version__ = "1.12.5"
1+
__version__ = "2.0.0"
22
__author__ = "desultory"
33

44
from pathlib import Path
55

66
from ugrd import ValidationError
77
from ugrd.fs.mounts import _resolve_overlay_lower_dir
8-
from zenlib.util import contains, unset
8+
from zenlib.util import contains, unset, colorize
99

1010

1111
class SubvolNotFound(Exception):
@@ -88,7 +88,7 @@ def autodetect_root_subvol(self):
8888
"""Detects the root subvolume."""
8989
try:
9090
root_subvol = _get_mount_subvol(self, "/")
91-
self.logger.info("Detected root subvolume: %s", root_subvol)
91+
self.logger.info("[btrfs] Detected root subvolume: %s", colorize(root_subvol, "cyan"))
9292
self["root_subvol"] = root_subvol
9393
except SubvolNotFound:
9494
self.logger.warning("Failed to detect root subvolume.")

0 commit comments

Comments
 (0)