[Pkg-ltsp-devel] patches needed for 0.99debian3 in debian-edu
Ronny Aasen
ronny at skolelinux.no
Mon Oct 2 21:15:02 UTC 2006
vagrantc: i have tested and rebuild ltsp 0.99debian3 localy. This is the
changes i needed to do to get it to work out of the box with debian-edu
etch-test. Bug #390647, #390722 and the dependency on gettext-base
prevented it from running at all.
The distribution mirror and the preseeding of accept-unsigned-packages
are probably mostly interesting for CCD distributions.
here is the patch i must apply to 0.99debian3 in order to
1: workaround bug #390647
2: alter debian menu order #390722
3: detect distribution on the mirror and use that when building chroot
4: add dependency on gettext-base that's used in ltsp-client-builder
5: add preseeding support for --accept-unsigned-packages.
/bzr/ltsp-sep$ bzr diff
=== modified file 'debian/control'
--- debian/control 2006-09-28 17:34:52 +0000
+++ debian/control 2006-10-02 21:00:29 +0000
@@ -7,7 +7,7 @@
Standards-Version: 3.7.2
Package: ltsp-server
-Depends: ${misc:Depends}, debootstrap, nfs-kernel-server, lsb-release,
tftpd-hpa | atftpd, openssh-client | ssh, iproute, debconf-utils,
esound-clients | nas-bin, python (>= 2.4), netbase (>= 4.08)
+Depends: ${misc:Depends}, debootstrap, nfs-kernel-server, lsb-release,
tftpd-hpa | atftpd, openssh-client | ssh, iproute, debconf-utils,
esound-clients | nas-bin, python (>= 2.4), netbase (>= 4.08), gettext-base
Recommends: openssh-server | ssh, nbd-server
Suggests: dhcp3-server, sdm, audiooss
Architecture: all
@@ -54,7 +54,7 @@
XC-Package-Type: udeb
Architecture: all
Depends: ${misc:Depends}, ${shlibs:Depends}, base-installer
-XB-Installer-Menu-Item: 68
+XB-Installer-Menu-Item: 73
Description: Build an LTSP environment in the installer target
This udeb bootstraps the LTSP client chroot in the installer target
while the cdrom is still mounted.
=== modified file 'debian/ltsp-client-builder.postinst'
--- debian/ltsp-client-builder.postinst 2006-09-28 18:21:05 +0000
+++ debian/ltsp-client-builder.postinst 2006-10-02 20:53:38 +0000
@@ -24,6 +24,18 @@
log "user requested no ltsp chroot"
exit 0
fi
+
+#get dist
+if db_get mirror/distribution && [ "$RET" ] ; then
+ log "mirror distribution is : $RET"
+ DIST=" --dist $RET"
+fi
+
+#signed archive or not ? for CCD preseeding
+if db_get ltsp-client-builder/unsigned-archive && [ "true" = "$RET" ]
; then
+ log "accept the unsigned archive"
+ UNSIGN=" --accept-unsigned-packages"
+fi
# if everything is fine, run ltsp-build-client on the target disk
@@ -34,8 +46,11 @@
db_progress STEP 1
DEBIAN_PRIORITY=critical
+in-target /bin/touch /etc/resolvconf/run/resolv.conf
in-target /usr/sbin/ltsp-build-client \
--mirror file:///cdrom \
+ $DIST \
+ $UNSIGN \
--security-mirror none
db_progress STEP 1
=== modified file 'debian/ltsp-client-builder.templates'
--- debian/ltsp-client-builder.templates 2006-05-31 18:48:11 +0000
+++ debian/ltsp-client-builder.templates 2006-10-02 20:53:26 +0000
@@ -13,3 +13,9 @@
Template: ltsp-client-builder/progress
Type: text
_Description: Building LTSP chroot...
+
+Template: ltsp-client-builder/unsigned-archive
+Type: boolean
+Default: false
+Description: preseed value for CCD's with unsigned archives
+
More information about the Pkg-ltsp-devel
mailing list