setup_chroot.sh bugs (mknod and nss libs)

Bug #1198145 reported by NetVicious
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scponly (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hi!

I discovered some bugs in the script setup_chroot.sh, at least on my i686 system.

******
** 1 **
******
On my system the libnss_compat libs are on lib/i386-linux-gnu/ instead of directly on /lib

I added a second zone for adding libs

97a98,103
> # Fix for Debian i386 - NetVicious
> /bin/ls /lib/i386-linux-gnu/libnss_compat* > /dev/null 2>&1
> if [ $? -eq 0 ]; then
> LIB_LIST="$LIB_LIST /lib/i386-linux-gnu/libnss_compat*"
> fi
>

******
** 2 **
******
The creation of the special file null it's wrong. The major and minor numbers are swaped.

271c278
< mknod $targetdir/dev/null c 3 1
---
> mknod $targetdir/dev/null c 1 3

After these changes seems to work correctly.

Regards,

-----------

$ lsb_release -rd
Description: Ubuntu 12.04.2 LTS
Release: 12.04

$ apt-cache policy scponly
scponly:
  Instalados: 4.8-4
  Candidato: 4.8-4
  Tabla de versión:
 *** 4.8-4 0
        100 /var/lib/dpkg/status

Revision history for this message
Phillip Susi (psusi) wrote :

This package was removed from Ubuntu in Precise. You may continue to run it, but it is not advised, and not supported.

Changed in scponly (Ubuntu):
status: New → Invalid
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.