File: runbootcdproberoot

package info (click to toggle)
bootcd 3.10%2Bnmu1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 508 kB
  • ctags: 128
  • sloc: sh: 3,935; makefile: 117
file content (33 lines) | stat: -rwxr-xr-x 689 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
# /etc/initramfs-tools/scripts/init-premount/runbootcdproberoot
# local-top geht nicht weil root=auto nicht nach local kommt

# See manpage initramfs-tools(8)
. /scripts/functions

PREREQ="udev"
prereqs()
{
    echo "$PREREQ"
}

case $1 in
prereqs)
    prereqs
    exit 0
    ;;
esac

if [ "$(grep "\<bootcd=" /proc/cmdline)" ]; then
  # we are not called from cd with option bootcd=bootcd or bootcd=standard

  [ -x "/usr/share/bootcd/bootcdproberoot" ] || panic "bootcdproberoot not found"

  log_begin_msg "Starting bootcdproberoot"
  oldroot=$(cat /proc/sys/kernel/real-root-dev)
  /usr/share/bootcd/bootcdproberoot ||panic "bootcdproberoot failed"

  log_end_msg
fi

exit 0