You are not logged in.

#1 2012-07-22 17:15:22

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Problem with chroot, "Deprecated key ‘script-config’ used"

I setup an i686 chroot in my x86_64 system and have happily been using schroot to call i686 programs from my x86_64 environment -- particularly makepkg.  Recently, I get this error which I can't track down to a cause:

$ schroot -p -- htop
W: line 16 [Arch32]: Deprecated key ‘script-config’ used
I: This option will be removed in the future; please update your configuration
W: line 8 [arch32]: Deprecated key ‘script-config’ used
I: This option will be removed in the future; please update your configuration
E: 15binfmt: which: no update-binfmts in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
E: 15binfmt: which: no update-binfmts in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)

Wiki reference: https://wiki.archlinux.org/index.php/In … _in_Arch64

Here is my /etc/rc.d/arch32 which has worked for ages.  Thanks for insights!

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case $1 in
	start)
		stat_busy "Starting Arch32 chroot"
		dirs_forward=(/dev /dev/pts /tmp /home /mnt/data /scratch)
		[[ ! -f /opt/arch32/.arch32 ]] && mount LABEL="arch32" /opt/arch32
		for d in "${dirs_forward[@]}"; do
			mount -o bind $d /opt/arch32$d
		done
		mount -t proc none /opt/arch32/proc
		mount -t sysfs none /opt/arch32/sys
		add_daemon arch32
		stat_done
		;;
	stop)
		stat_busy "Stopping Arch32 chroot"
		dirs_backwards=(/dev/pts /dev /tmp /home /mnt/data /scratch)
		for d in "${dirs_backwards[@]}"; do
			umount "/opt/arch32$d"
		done
		umount /opt/arch32/{proc,sys}
		[[ -f /opt/arch32/.arch32 ]] && umount /opt/arch32
		rm_daemon arch32
		stat_done
		;;
	restart)
		$0 stop
		sleep 1
		$0 start
		;;
	*)
		echo "usage: $0 {start|stop|restart}"
esac
exit 0

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-07-23 11:34:45

sakhnik
Member
From: Kyiv
Registered: 2011-07-09
Posts: 13
Website

Re: Problem with chroot, "Deprecated key ‘script-config’ used"

This isn't a fatal error in my case: I use chroot to keep outdated Arch environment for proprietary software. Both are i686. Yet I wonder where the update-binfmts went.

Offline

#3 2012-10-03 19:59:15

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Problem with chroot, "Deprecated key ‘script-config’ used"

Update: Found the cause of the script-config annoyances and bugged it.  I am still at a loss as to why I get the update-binfmts stuff.  I can't even determine which package provides update-binfmts:

% sudo pkgfile -u ; pkgfile -s update-binfmts
%

EDIT: Bugged it.
Reference: https://bugs.archlinux.org/task/31793

Last edited by graysky (2012-10-03 20:11:31)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB