OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17200
/
usr
/
share
/
initramfs-tools
/
scripts
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/18/2024 07:58:21 PM
rwxr-xr-x
📄
bootloader-script
3.48 KB
09/14/2017 02:44:19 PM
rw-r--r--
📄
functions
19.31 KB
09/23/2020 08:45:54 PM
rw-r--r--
📁
init-bottom
-
02/18/2024 07:58:20 PM
rwxr-xr-x
📁
init-top
-
02/18/2024 07:58:21 PM
rwxr-xr-x
📄
local
6.1 KB
10/07/2019 10:53:35 AM
rw-r--r--
📁
local-bottom
-
02/18/2024 07:58:20 PM
rwxr-xr-x
📁
local-premount
-
02/18/2024 07:58:21 PM
rwxr-xr-x
📄
nfs
2.98 KB
10/07/2019 10:53:35 AM
rw-r--r--
📁
panic
-
02/18/2024 07:58:21 PM
rwxr-xr-x
📄
ubuntu-core-functions
1.57 KB
09/14/2017 02:44:19 PM
rw-r--r--
📄
ubuntu-core-rootfs
11.87 KB
05/11/2020 01:53:16 PM
rw-r--r--
Editing: ubuntu-core-functions
Close
# -*- shell-script -*- pre_mountroot() { local script_dir="/scripts/local-top" [ "$quiet" != "y" ] && log_begin_msg "Running $script_dir" run_scripts "$script_dir" [ "$quiet" != "y" ] && log_end_msg } # Determine full path to disk partition given a filesystem label. get_partition_from_label() { local label="$1" [ -n "$label" ] || panic "need FS label" # Make sure the device has been created by udev before looking for it # Don't need to panic, since the output will be validated outside this function wait-for-root "LABEL=$label" "${ROOTDELAY:-180}" >/dev/null || true local part=$(find /dev -name "$label"|tail -1) [ -z "$part" ] && return local path=$(readlink -f "$part") [ -n "$path" ] && echo "$path" } # setup $writable_mnt do_root_mounting() { root="LABEL=$writable_label" # Make sure the device has been created by udev before we try to mount wait-for-root "$root" "${ROOTDELAY:-180}" || panic "unable to find root partition '$root'" # FIXME: This is never false since we set $root above [ -n "$root" ] || panic "no root partition specified" if echo "$root" | grep -q ^/; then path="$root" else # convert UUID/LABEL to a device name path=$(findfs "$root" 2>/dev/null || :) fi [ -e "$path" ] || panic "root device $path does not exist" # try loading squashfs, but don't fail if its e.g. in the kernel # already modprobe squashfs || true if ! grep -q squashfs /proc/filesystems; then panic "no squashfs support found in your system, aborting" fi # mount writable rw path=$(get_partition_from_label "$writable_label") mount "$path" "$writable_mnt" }