OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
initramfs-tools
/
scripts
/
local-top
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:13:20 AM
rwxr-xr-x
📄
cryptopensc
737 bytes
08/03/2020 09:28:48 PM
rwxr-xr-x
📄
cryptroot
11.42 KB
08/03/2020 09:28:48 PM
rwxr-xr-x
📄
iscsi
10.06 KB
04/06/2022 07:19:56 PM
rwxr-xr-x
📄
lvm2
970 bytes
01/23/2020 03:45:10 PM
rwxr-xr-x
Editing: lvm2
Close
#!/bin/sh PREREQ="mdadm mdrun multipath" prereqs() { echo "$PREREQ" } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; esac if [ ! -e /sbin/lvm ]; then exit 0 fi lvchange_activate() { lvm lvchange -aay -y --sysinit --ignoreskippedcluster "$@" } activate() { local dev="$1" # Make sure that we have a non-empty argument if [ -z "$dev" ]; then return 1 fi case "$dev" in # Take care of lilo boot arg, risky activating of all vg fe[0-9]*) lvchange_activate exit 0 ;; # FIXME: check major /dev/root) lvchange_activate exit 0 ;; /dev/mapper/*) eval $(dmsetup splitname --nameprefixes --noheadings --rows "${dev#/dev/mapper/}") if [ "$DM_VG_NAME" ] && [ "$DM_LV_NAME" ]; then lvchange_activate "$DM_VG_NAME/$DM_LV_NAME" fi ;; /dev/*/*) # Could be /dev/VG/LV; use lvs to check if lvm lvs -- "$dev" >/dev/null 2>&1; then lvchange_activate "$dev" fi ;; esac } activate "$ROOT" activate "$resume" exit 0