⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.145
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
/
init-premount
/
View File Name :
lvm2
#!/bin/sh # init-premount script for lvm2. PREREQS="udev mdadm" prereqs() { echo $PREREQS } mountroot_fail() { if ! /sbin/lvm vgscan >/dev/null 2>&1 ; then cat <<EOF There appears to be one or more degraded LVM volumes, and your root device may depend on the LVM volumes being online. One or more of the following LVM volumes are degraded: EOF /sbin/lvm vgscan fi # Nothing has been fixed on the system, so "fail" our recovery attempt. exit 1 } case $1 in # get pre-requisites prereqs) prereqs exit 0 ;; mountfail) mountroot_fail exit 0 ;; esac . /scripts/functions add_mountroot_fail_hook "20-lvm2" exit 0