debootstrap helper updated for flidas
This commit is contained in:
parent
0e9936f851
commit
76a9f47e03
2 changed files with 151 additions and 131 deletions
1
helpers/DATA/debootstrap/flidas
Symbolic link
1
helpers/DATA/debootstrap/flidas
Symbolic link
|
|
@ -0,0 +1 @@
|
||||||
|
trisquel
|
||||||
|
|
@ -1,8 +1,16 @@
|
||||||
|
case $ARCH in
|
||||||
|
amd64|i386)
|
||||||
default_mirror http://archive.trisquel.info/trisquel
|
default_mirror http://archive.trisquel.info/trisquel
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
default_mirror http://ports.trisquel.info/trisquel
|
||||||
|
;;
|
||||||
|
esac
|
||||||
mirror_style release
|
mirror_style release
|
||||||
download_style apt
|
download_style apt
|
||||||
finddebs_style from-indices
|
finddebs_style from-indices
|
||||||
variants - buildd fakechroot minbase
|
variants - buildd fakechroot minbase
|
||||||
|
keyring /usr/share/keyrings/trisquel-archive-keyring.gpg
|
||||||
|
|
||||||
if doing_variant fakechroot; then
|
if doing_variant fakechroot; then
|
||||||
test "$FAKECHROOT" = "true" || error 1 FAKECHROOTREQ "This variant requires fakechroot environment to be started"
|
test "$FAKECHROOT" = "true" || error 1 FAKECHROOTREQ "This variant requires fakechroot environment to be started"
|
||||||
|
|
@ -25,6 +33,12 @@ work_out_debs () {
|
||||||
elif doing_variant fakechroot || doing_variant minbase; then
|
elif doing_variant fakechroot || doing_variant minbase; then
|
||||||
base="apt"
|
base="apt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
case $MIRRORS in
|
||||||
|
https://*)
|
||||||
|
base="$base apt-transport-https ca-certificates"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
first_stage_install () {
|
first_stage_install () {
|
||||||
|
|
@ -40,11 +54,7 @@ first_stage_install () {
|
||||||
chown 0:0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
|
chown 0:0 "$TARGET/etc/fstab"; chmod 644 "$TARGET/etc/fstab"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if doing_variant fakechroot; then
|
|
||||||
setup_devices_fakechroot
|
|
||||||
else
|
|
||||||
setup_devices
|
setup_devices
|
||||||
fi
|
|
||||||
|
|
||||||
x_feign_install () {
|
x_feign_install () {
|
||||||
local pkg="$1"
|
local pkg="$1"
|
||||||
|
|
@ -92,7 +102,8 @@ second_stage_install () {
|
||||||
|
|
||||||
p; progress $baseprog $bases INSTCORE "Installing core packages" #2
|
p; progress $baseprog $bases INSTCORE "Installing core packages" #2
|
||||||
ln -sf mawk "$TARGET/usr/bin/awk"
|
ln -sf mawk "$TARGET/usr/bin/awk"
|
||||||
x_core_install base-files base-passwd
|
x_core_install base-passwd
|
||||||
|
x_core_install base-files
|
||||||
p; progress $baseprog $bases INSTCORE "Installing core packages" #3
|
p; progress $baseprog $bases INSTCORE "Installing core packages" #3
|
||||||
x_core_install dpkg
|
x_core_install dpkg
|
||||||
|
|
||||||
|
|
@ -136,6 +147,11 @@ second_stage_install () {
|
||||||
sed -i '/dpkg.*--compare-versions/ s/\<lt\>/lt-nl/' "$TARGET/var/lib/dpkg/info/initscripts.postinst"
|
sed -i '/dpkg.*--compare-versions/ s/\<lt\>/lt-nl/' "$TARGET/var/lib/dpkg/info/initscripts.postinst"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo \
|
||||||
|
"#!/bin/sh
|
||||||
|
exit 101" > "$TARGET/usr/sbin/policy-rc.d"
|
||||||
|
chmod 755 "$TARGET/usr/sbin/policy-rc.d"
|
||||||
|
|
||||||
mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
|
mv "$TARGET/sbin/start-stop-daemon" "$TARGET/sbin/start-stop-daemon.REAL"
|
||||||
echo \
|
echo \
|
||||||
"#!/bin/sh
|
"#!/bin/sh
|
||||||
|
|
@ -147,6 +163,7 @@ echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/
|
||||||
mv "$TARGET/sbin/initctl" "$TARGET/sbin/initctl.REAL"
|
mv "$TARGET/sbin/initctl" "$TARGET/sbin/initctl.REAL"
|
||||||
echo \
|
echo \
|
||||||
"#!/bin/sh
|
"#!/bin/sh
|
||||||
|
if [ \"\$1\" = version ]; then exec /sbin/initctl.REAL \"\$@\"; fi
|
||||||
echo
|
echo
|
||||||
echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl"
|
echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl"
|
||||||
chmod 755 "$TARGET/sbin/initctl"
|
chmod 755 "$TARGET/sbin/initctl"
|
||||||
|
|
@ -172,7 +189,8 @@ echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl"
|
||||||
predep=$(without "$(without "$(resolve_deps $predep)" "$required")" "$done_predeps")
|
predep=$(without "$(without "$(resolve_deps $predep)" "$required")" "$done_predeps")
|
||||||
# XXX: progress is tricky due to how dpkg_progress works
|
# XXX: progress is tricky due to how dpkg_progress works
|
||||||
# -- cjwatson 2009-07-29
|
# -- cjwatson 2009-07-29
|
||||||
p; smallyes '' | in_target dpkg --force-overwrite --force-confold --skip-same-version --install $(debfor $predep)
|
p; smallyes '' |
|
||||||
|
in_target dpkg --force-overwrite --force-confold --skip-same-version --install $(debfor $predep)
|
||||||
base=$(without "$base" "$predep")
|
base=$(without "$base" "$predep")
|
||||||
done_predeps="$done_predeps $predep"
|
done_predeps="$done_predeps $predep"
|
||||||
done
|
done
|
||||||
|
|
@ -185,7 +203,7 @@ echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl"
|
||||||
info CONFBASE "Configuring the base system..."
|
info CONFBASE "Configuring the base system..."
|
||||||
|
|
||||||
smallyes '' |
|
smallyes '' |
|
||||||
(repeatn 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be attempted 5 times." "" \
|
(repeatn 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be re-attempted up to five times." "" \
|
||||||
dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 |
|
dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 |
|
||||||
dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
|
dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING) 7>&1
|
||||||
|
|
||||||
|
|
@ -193,6 +211,7 @@ echo \"Warning: Fake initctl called, doing nothing\"" > "$TARGET/sbin/initctl"
|
||||||
mv "$TARGET/sbin/initctl.REAL" "$TARGET/sbin/initctl"
|
mv "$TARGET/sbin/initctl.REAL" "$TARGET/sbin/initctl"
|
||||||
fi
|
fi
|
||||||
mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
|
mv "$TARGET/sbin/start-stop-daemon.REAL" "$TARGET/sbin/start-stop-daemon"
|
||||||
|
rm -f "$TARGET/usr/sbin/policy-rc.d"
|
||||||
|
|
||||||
progress $bases $bases CONFBASE "Configuring base system"
|
progress $bases $bases CONFBASE "Configuring base system"
|
||||||
info BASESUCCESS "Base system installed successfully."
|
info BASESUCCESS "Base system installed successfully."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue