14 lines
594 B
Bash
14 lines
594 B
Bash
#!/bin/bash
|
|
echo "=== в initrd:"
|
|
grep -rn 'KRD_LIVE_LAYERS\|live_layers\|KRD_SRM' /root/krd24/ir 2>/dev/null | head -20
|
|
echo
|
|
echo "=== в squashfs (по списку файлов /etc/KRD):"
|
|
cd /root/krd24 || exit 1
|
|
unsquashfs -l filesystem.squashfs 2>/dev/null | grep 'squashfs-root/etc/KRD'
|
|
echo
|
|
echo "=== содержимое /etc/KRD/*:"
|
|
for f in $(unsquashfs -l filesystem.squashfs 2>/dev/null | grep 'squashfs-root/etc/KRD/' | sed 's/^squashfs-root\///'); do
|
|
echo "----- /$f"
|
|
unsquashfs -cat filesystem.squashfs "$f" 2>/dev/null | grep -nE 'KRD_LIVE|LAYERS|SRM|live' | head -20
|
|
done
|