diff options
author | Rod Whitby <rod@whitby.id.au> | 2007-06-27 08:38:18 +0000 |
---|---|---|
committer | Rod Whitby <rod@whitby.id.au> | 2007-06-27 08:38:18 +0000 |
commit | 595766d291827e33593df3e58ec304c76c994048 (patch) | |
tree | 2b66cf08c364bf0d433c716a380033fcca0bc74c /packages/slugos-init/files | |
parent | 144c99c83f6ec2f6feae99a5dedb9e07df28bdfd (diff) |
slugos-init: Another spot to support rootfs mtd partition naming.
Diffstat (limited to 'packages/slugos-init/files')
-rw-r--r-- | packages/slugos-init/files/initscripts/umountinitrd.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/slugos-init/files/initscripts/umountinitrd.sh b/packages/slugos-init/files/initscripts/umountinitrd.sh index 2798fe5985..93f05a00f6 100644 --- a/packages/slugos-init/files/initscripts/umountinitrd.sh +++ b/packages/slugos-init/files/initscripts/umountinitrd.sh @@ -20,6 +20,8 @@ do umount /mnt;; /initrd)# need the device for a remount ffsdev="$(mtblockdev $ffspart)" + [ -n "$ffsdev" ] || \ + ffsdev="$(mtblockdev rootfs)" echo "Remounting $ffsdev read-only on /initrd" >&2 if test -n "$ffsdev" -a -b "$ffsdev" then |