⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.78
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
initramfs-tools
/
scripts
/
local-top
/
View File Name :
lvm2
#!/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