setup_chroot.sh bugs (mknod and nss libs)
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-
> if [ $? -eq 0 ]; then
> LIB_LIST="$LIB_LIST /lib/i386-
> 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/
This package was removed from Ubuntu in Precise. You may continue to run it, but it is not advised, and not supported.