Re: [RFC] lenny-support udeb
* Frans Pop <elendil@planet.nl> [2009-11-21 19:22]:
> Correct, it would have to be copied-and-modified-as-needed as
> apt-setup starts from scratch.
It's really simply. I just made an installation of lenny on a device
that was not supported by lenny using the following patch to a daily
image:
diff -urN i.bak/usr/bin/oldsys-preseed i/usr/bin/oldsys-preseed
--- i.bak/usr/bin/oldsys-preseed 2009-11-22 13:27:30.000000000 +0000
+++ i/usr/bin/oldsys-preseed 2009-11-22 13:27:19.000000000 +0000
@@ -276,6 +276,10 @@
# there's no other way on some machines.
add "$FILE" "network-console/password" "password" "install"
add "$FILE" "network-console/password-again" "password" "install"
+
+ add "$FILE" "mirror/suite" "string" "stable"
+ add "$FILE" "apt-setup/local0/repository" "string" "http://people.debian.org/~tbm/orion lenny main"
+ add "$FILE" "apt-setup/local0/key" "string" "http://people.debian.org/~tbm/orion/68FD549F"
fi
# Workaround for broken partconf
diff -urN i.bak/usr/lib/post-base-installer.d/90apt-mirror-local i/usr/lib/post-base-installer.d/90apt-mirror-local
--- i.bak/usr/lib/post-base-installer.d/90apt-mirror-local 1970-01-01 01:00:00.000000000 +0100
+++ i/usr/lib/post-base-installer.d/90apt-mirror-local 2009-11-22 13:44:21.000000000 +0000
@@ -0,0 +1,8 @@
+set -e
+
+export ROOT=/target
+/usr/lib/apt-setup/generators/60local $ROOT/etc/apt/sources.list
+
+. /usr/lib/base-installer/library.sh
+apt_update
+
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: