Skip to content
Snippets Groups Projects
Commit b0eab07c authored by Markus Frosch's avatar Markus Frosch
Browse files

debootstrap: Pass qemu-arm-static into debootstrap chroot

And remove it afterwards.
parent b50e2050
No related branches found
No related tags found
1 merge request!2Implement CI
Pipeline #2989 failed
...@@ -72,6 +72,10 @@ first_stage_install () { ...@@ -72,6 +72,10 @@ first_stage_install () {
second_stage_install () { second_stage_install () {
setup_dynamic_devices setup_dynamic_devices
if [ -x /usr/bin/qemu-arm-static ]; then
cp -a /usr/bin/qemu-arm-static "$TARGET/usr/bin/qemu-arm-static"
fi
x_feign_install () { x_feign_install () {
local pkg="$1" local pkg="$1"
local deb="$(debfor $pkg)" local deb="$(debfor $pkg)"
...@@ -214,6 +218,9 @@ echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/ ...@@ -214,6 +218,9 @@ echo \"Warning: Fake start-stop-daemon called, doing nothing\"" > "$TARGET/sbin/
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" rm -f "$TARGET/usr/sbin/policy-rc.d"
# cleanup ARM virt
rm -f "$TARGET/usr/bin/qemu-arm-static"
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."
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment