Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2023-07-30 23:40:40 +0200
committerGitHub <noreply@github.com>2023-07-30 23:40:40 +0200
commit3cea9baff6b0b15b766c7095f1d56adece74b58e (patch)
tree21ad6161a841711c0e1dcb907dca31e61d64c075 /archinstall/lib/disk
parenta1ad25ff4575d874b5634cee57a927a041283886 (diff)
Muted partprobe (#1964)
* Muted partprobe * Missing import
Diffstat (limited to 'archinstall/lib/disk')
-rw-r--r--archinstall/lib/disk/device_handler.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py
index 9acf0999..d46275d1 100644
--- a/archinstall/lib/disk/device_handler.py
+++ b/archinstall/lib/disk/device_handler.py
@@ -3,6 +3,7 @@ from __future__ import annotations
import json
import os
import time
+import logging
from pathlib import Path
from typing import List, Dict, Any, Optional, TYPE_CHECKING
@@ -23,7 +24,7 @@ from .device_model import (
from ..exceptions import DiskError, UnknownFilesystemFormat
from ..general import SysCommand, SysCallError, JSON
from ..luks import Luks2
-from ..output import debug, error, info, warn
+from ..output import debug, error, info, warn, log
from ..utils.util import is_subpath
if TYPE_CHECKING:
@@ -584,7 +585,10 @@ class DeviceHandler(object):
debug(f'Calling partprobe: {command}')
SysCommand(command)
except SysCallError as err:
- error(f'"{command}" failed to run: {err}')
+ if 'have been written, but we have been unable to inform the kernel of the change' in str(err):
+ log(f"Partprobe was not able to inform the kernel of the new disk state (ignoring error): {err}", fg="gray", level=logging.INFO)
+ else:
+ error(f'"{command}" failed to run (continuing anyway): {err}')
def _wipe(self, dev_path: Path):
"""