#!/bin/sh set -eu modeenv=/run/mnt/data/system-data/var/lib/snapd/modeenv mode="$(/usr/libexec/core/get-mode mode "${modeenv}")" || mode="unknown" case "${mode}" in install|recover|factory-reset) save_dir=/run/mnt/ubuntu-data/system-data/var/log/debug ;; *) save_dir=/run/mnt/data/system-data/var/log/debug ;; esac next_num=1 for boot in "${save_dir}"/boot*; do if [ -d "${boot}" ]; then base="$(basename "${boot}")" num="${base#boot}" if [ "${num}" -ge "${next_num}" ]; then next_num="$((${num}+1))" fi fi done next_dir="${save_dir}/boot${next_num}" mkdir -p "${next_dir}" mv /run/log/base/*.svg "${next_dir}/" for initrd_file in /run/log/*.svg; do if [ -f "${initrd_file}" ]; then base="$(basename "${initrd_file}")" mv "${initrd_file}" "${next_dir}/initrd-${base}" fi done
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
boot | Folder | 0755 |
|
|
bootchart.conf.d | Folder | 0755 |
|
|
catalog | Folder | 0755 |
|
|
network | Folder | 0755 |
|
|
ntp-units.d | Folder | 0755 |
|
|
system | Folder | 0755 |
|
|
system-generators | Folder | 0755 |
|
|
system-preset | Folder | 0755 |
|
|
system-shutdown | Folder | 0755 |
|
|
system-sleep | Folder | 0755 |
|
|
user | Folder | 0755 |
|
|
user-environment-generators | Folder | 0755 |
|
|
user-generators | Folder | 0755 |
|
|
user-preset | Folder | 0755 |
|
|
libsystemd-shared-249.so | File | 2.71 MB | 0644 |
|
resolv.conf | File | 710 B | 0644 |
|
systemd | File | 1.76 MB | 0755 |
|
systemd-ac-power | File | 14.37 KB | 0755 |
|
systemd-backlight | File | 30.29 KB | 0755 |
|
systemd-binfmt | File | 18.37 KB | 0755 |
|
systemd-bless-boot | File | 30.47 KB | 0755 |
|
systemd-boot-check-no-failures | File | 14.37 KB | 0755 |
|
systemd-bootchart | File | 98.51 KB | 0755 |
|
systemd-bootchart-poststop.sh | File | 897 B | 0755 |
|
systemd-cgroups-agent | File | 14.29 KB | 0755 |
|
systemd-cryptsetup | File | 58.55 KB | 0755 |
|
systemd-fsck | File | 26.3 KB | 0755 |
|
systemd-fsckd | File | 30.37 KB | 0755 |
|
systemd-growfs | File | 22.37 KB | 0755 |
|
systemd-hibernate-resume | File | 14.29 KB | 0755 |
|
systemd-hostnamed | File | 42.39 KB | 0755 |
|
systemd-initctl | File | 22.37 KB | 0755 |
|
systemd-journald | File | 158.38 KB | 0755 |
|
systemd-localed | File | 50.39 KB | 0755 |
|
systemd-logind | File | 258.51 KB | 0755 |
|
systemd-makefs | File | 14.29 KB | 0755 |
|
systemd-modules-load | File | 18.47 KB | 0755 |
|
systemd-network-generator | File | 34.37 KB | 0755 |
|
systemd-networkd | File | 1.44 MB | 0755 |
|
systemd-networkd-wait-online | File | 34.5 KB | 0755 |
|
systemd-pstore | File | 22.39 KB | 0755 |
|
systemd-quotacheck | File | 14.37 KB | 0755 |
|
systemd-random-seed | File | 22.29 KB | 0755 |
|
systemd-remount-fs | File | 14.29 KB | 0755 |
|
systemd-reply-password | File | 14.29 KB | 0755 |
|
systemd-resolved | File | 478.42 KB | 0755 |
|
systemd-rfkill | File | 22.37 KB | 0755 |
|
systemd-shutdown | File | 46.38 KB | 0755 |
|
systemd-sleep | File | 26.37 KB | 0755 |
|
systemd-socket-proxyd | File | 30.38 KB | 0755 |
|
systemd-sulogin-shell | File | 14.29 KB | 0755 |
|
systemd-sysctl | File | 22.47 KB | 0755 |
|
systemd-sysv-install | File | 1.33 KB | 0755 |
|
systemd-time-wait-sync | File | 14.29 KB | 0755 |
|
systemd-timedated | File | 46.39 KB | 0755 |
|
systemd-timesyncd | File | 54.22 KB | 0755 |
|
systemd-udevd | File | 931.2 KB | 0755 |
|
systemd-update-utmp | File | 18.37 KB | 0755 |
|
systemd-user-runtime-dir | File | 22.29 KB | 0755 |
|
systemd-user-sessions | File | 14.29 KB | 0755 |
|
systemd-veritysetup | File | 22.4 KB | 0755 |
|
systemd-volatile-root | File | 18.29 KB | 0755 |
|
systemd-xdg-autostart-condition | File | 14.29 KB | 0755 |
|