blob: e83f10ee917a9d25e594d1bb6407581a46d6a4a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
#!/bin/sh
exec >&3
echo "-- initramfs sizes"
ls -lh /boot/initrd.img-*
echo "-- /proc/cmdline"
cat /proc/cmdline
echo
if [ -r /etc/initramfs-tools/conf.d/resume ]; then
echo "-- resume"
cat /etc/initramfs-tools/conf.d/resume
fi
echo "-- /proc/filesystems"
grep -v nodev /proc/filesystems
echo
echo "-- lsmod"
lsmod
echo
if [ -r /etc/initramfs-tools/modules ]; then
echo "-- /etc/initramfs-tools/modules"
sed 's/#.*$//;/^[[:space:]]*$/d' /etc/initramfs-tools/modules
echo
fi
if [ -r /etc/kernel-img.conf ]; then
echo "-- /etc/kernel-img.conf"
cat /etc/kernel-img.conf
echo
fi
if [ -r /etc/initramfs-tools/initramfs.conf ]; then
echo "-- /etc/initramfs-tools/initramfs.conf"
sed 's/#.*$//;/^[[:space:]]*$/d' /etc/initramfs-tools/initramfs.conf
echo
fi
if [ -r /etc/initramfs-tools/update-initramfs.conf ]; then
echo "-- /etc/initramfs-tools/update-initramfs.conf"
sed 's/#.*$//;/^[[:space:]]*$/d' /etc/initramfs-tools/update-initramfs.conf
echo
fi
if [ -r /etc/crypttab ]; then
echo "-- /etc/crypttab"
cat /etc/crypttab
echo
fi
if [ -r /proc/mdstat ]; then
echo "-- /proc/mdstat"
cat /proc/mdstat
echo
fi
if grep -rq "MODULES=dep" /etc/initramfs-tools/ ; then
echo "-- /sys/block"
ls /sys/block
echo
fi
echo "-- mkinitramfs hooks"
ls /usr/share/initramfs-tools/hooks /etc/initramfs-tools/hooks/
echo
|