[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#211260: rootskel: /linuxrc should include path for chroot



On Tue, Sep 16, 2003 at 10:24:47PM +0200, Steinar H. Gunderson wrote:
> Package: rootskel
> Version: 0.36
> Severity: normal
> Tags: patch d-i
> 
> /linuxrc has a line saying
> 
>   exec chroot . /linuxrc </dev/console >/dev/console 2>&1
> 
> On my own images, I've had problems with this script not finding chroot.
> Changing the line to
> 
>   exec /usr/sbin/chroot . /linuxrc </dev/console >/dev/console 2>&1
> 
> fixes the problems.
> 

dejavu. This has been reported before, it told that the error exists 
due that chroot is the only executable in /usr/sbin. an other workaround
was proposed in extending PATH with /usr/sbin.

    whatever

Please apply:

RCS file: /cvs/debian-boot/debian-installer/rootskel/src/linuxrc,v
retrieving revision 1.11
diff -u -r1.11 linuxrc
--- rootskel/src/linuxrc        24 May 2003 12:43:23 -0000      1.11
+++ rootskel/src/linuxrc        17 Sep 2003 07:01:26 -0000
@@ -11,4 +11,4 @@
 # Close all open files on the initrd, and run busybox init.
 rm -f linuxrc # this program
 ln -s /sbin/init linuxrc
-exec chroot . /linuxrc <dev/console >dev/console 2>&1
+exec /usr/sbin/chroot . /linuxrc <dev/console >dev/console 2>&1

So that we would see the error again
and d-i makes the progress it should make.


Geert Stappers
So



Reply to: