summaryrefslogtreecommitdiff
path: root/scripts/local
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-06-16 17:31:14 +0200
committermaximilian attems <maks@debian.org>2010-06-16 17:31:14 +0200
commitb9de5de1a54938a1ecbfc60602bb2d9a59c5dade (patch)
treed6132217f42cb8481cbc8c837f3f66824ea81b81 /scripts/local
parentb1f74e697820d878a15e430e4ce1b74cd7fad2d3 (diff)
parent528ba7842a4079526118ba6edda25ed926d550ea (diff)
downloadinitramfs-tools-b9de5de1a54938a1ecbfc60602bb2d9a59c5dade.tar.gz
initramfs-tools-b9de5de1a54938a1ecbfc60602bb2d9a59c5dade.zip
Merge branch 'master' of git+ssh://git.debian.org/srv/git.debian.org/git/kernel/initramfs-tools
Diffstat (limited to 'scripts/local')
-rw-r--r--scripts/local7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/local b/scripts/local
index 98464f9..9b51174 100644
--- a/scripts/local
+++ b/scripts/local
@@ -8,6 +8,13 @@ pre_mountroot()
wait_for_udev 10
+ # Load ubi with the correct MTD partition and return since fstype
+ # doesn't work with a char device like ubi.
+ if [ -n "$UBIMTD" ]; then
+ modprobe ubi mtd=$UBIMTD
+ return
+ fi
+
# Don't wait for a root device that doesn't have a corresponding
# device in /dev (ie, mtd0)
if [ "${ROOT#/dev}" = "${ROOT}" ]; then