summaryrefslogtreecommitdiff
path: root/scripts/ubuntu/edgy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ubuntu/edgy')
-rw-r--r--scripts/ubuntu/edgy31
1 files changed, 27 insertions, 4 deletions
diff --git a/scripts/ubuntu/edgy b/scripts/ubuntu/edgy
index 7f656b6..53e82ec 100644
--- a/scripts/ubuntu/edgy
+++ b/scripts/ubuntu/edgy
@@ -9,7 +9,11 @@ esac
mirror_style release
download_style apt
finddebs_style from-indices
-variants - buildd
+variants - buildd fakechroot
+
+if doing_variant fakechroot; then
+ test "$FAKECHROOT" = "true" || error 1 FAKECHROOTREQ "This variant requires fakechroot environment to be started"
+fi
work_out_debs () {
LIBC6=libc6
@@ -33,6 +37,8 @@ work_out_debs () {
add sparc base "lib64gcc1"
add sparc base "libc6-dev-sparc64"
add sparc base "libc6-sparc64"
+ elif doing_variant fakechroot; then
+ base="apt"
fi
}
@@ -49,7 +55,11 @@ first_stage_install () {
chown 0.0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
fi
- setup_devices
+ if doing_variant fakechroot; then
+ setup_devices_fakechroot
+ else
+ setup_devices
+ fi
x_feign_install () {
local pkg="$1"
@@ -82,8 +92,12 @@ second_stage_install () {
baseprog="$(($baseprog + ${1:-1}))"
}
- setup_proc
- in_target /sbin/ldconfig
+ if doing_variant fakechroot; then
+ setup_proc_fakechroot
+ else
+ setup_proc
+ in_target /sbin/ldconfig
+ fi
DEBIAN_FRONTEND=noninteractive
DEBCONF_NONINTERACTIVE_SEEN=true
@@ -105,6 +119,10 @@ second_stage_install () {
ln -sf /usr/share/zoneinfo/UTC "$TARGET/etc/localtime"
fi
+ if doing_variant fakechroot; then
+ install_fakechroot_tools
+ fi
+
p; progress $baseprog $bases INSTCORE "Installing core packages" #4
x_core_install $LIBC6
@@ -132,6 +150,11 @@ second_stage_install () {
info CONFREQ "Configuring required packages..."
+ if doing_variant fakechroot; then
+ # fix initscripts postinst (no mounting possible, and wrong if condition)
+ sed -i '/dpkg.*--compare-versions/ s/\<lt\>/lt-nl/' $TARGET/var/lib/dpkg/info/initscripts.postinst
+ fi
+
mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
echo \
"#!/bin/sh