mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
add note regarding possible missing devices
This commit is contained in:
@@ -938,12 +938,24 @@ main() {
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Log initial system state
|
# Log initial system state with context
|
||||||
log "Initial system state:"
|
log "----------------------------------------"
|
||||||
|
log "Checking initial system state"
|
||||||
|
log "NOTE: If any drives were previously used in another system, you may see"
|
||||||
|
log " warnings about missing devices or volume groups below. These warnings"
|
||||||
|
log " are normal and expected when reusing drives. They indicate the drive"
|
||||||
|
log " was part of a previous system's configuration and will be automatically"
|
||||||
|
log " cleaned up in the following steps."
|
||||||
|
log "----------------------------------------"
|
||||||
|
|
||||||
log_cmd "lsblk" "Block devices"
|
log_cmd "lsblk" "Block devices"
|
||||||
log_cmd "pvs" "Physical volumes"
|
log_cmd "pvs" "Physical volumes"
|
||||||
log_cmd "vgs" "Volume groups"
|
log_cmd "vgs" "Volume groups"
|
||||||
log_cmd "lvs" "Logical volumes"
|
log_cmd "lvs" "Logical volumes"
|
||||||
|
|
||||||
|
log "----------------------------------------"
|
||||||
|
log "Proceeding with cleanup of any previous configurations and setup for /nsm"
|
||||||
|
log "----------------------------------------"
|
||||||
|
|
||||||
# Check if LVM is already configured
|
# Check if LVM is already configured
|
||||||
if vgs "$VG_NAME" &>/dev/null && lvs "$VG_NAME/$LV_NAME" &>/dev/null; then
|
if vgs "$VG_NAME" &>/dev/null && lvs "$VG_NAME/$LV_NAME" &>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user