Skip to content

Commit

Permalink
Muted partprobe
Browse files Browse the repository at this point in the history
  • Loading branch information
Torxed committed Jul 30, 2023
1 parent a1ad25f commit 15c65ff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion archinstall/lib/disk/device_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import os
import time
import logging
from pathlib import Path
from typing import List, Dict, Any, Optional, TYPE_CHECKING

Expand Down Expand Up @@ -584,7 +585,10 @@ def partprobe(self, path: Optional[Path] = None):
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):
"""
Expand Down

0 comments on commit 15c65ff

Please sign in to comment.