init: static ${rootmnt} at the end
Bug #24266 reported by
Juanje Ojeda
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Low
|
Scott James Remnant (Canonical) |
Bug Description
I guess it wasn't intentional to leave '/root/dev/console' instead of
'${rootmnt}
Usually people doesn't change this var, but if they do, then it could crash or
something.
I put here my patch:
<file=init.patch>
--- init 2005-09-30 21:24:10.000000000 +0100
+++ init.mine 2005-10-19 15:06:08.278285176 +0100
@@ -108,4 +109,5 @@
fi
# Chain to real filesystem
-exec run-init ${rootmnt} ${init} "$@" </root/dev/console >/root/dev/console
+exec run-init ${rootmnt} ${init} "$@" <${rootmnt}
>${rootmnt}
<file=init.patch>
Thanks again for your work, it's lovely ;-)
To post a comment you must log in.
Another good patch from Juanje. Thanks! =)
Tks,
Jeff Bailey