init: static ${rootmnt} at the end

Bug #24266 reported by Juanje Ojeda
6
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}/dev/console', was it?
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}/dev/console
>${rootmnt}/dev/console
<file=init.patch>

Thanks again for your work, it's lovely ;-)

Revision history for this message
Jeff Bailey (jbailey) wrote :

Another good patch from Juanje. Thanks! =)

Tks,
Jeff Bailey

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

*cough* while I was in there, I fixed this

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Fixed

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.