[X2Go-Commits] [live-build-x2go] 03/03: add excludes

git-admin at x2go.org git-admin at x2go.org
Thu Jul 19 18:18:50 CEST 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository live-build-x2go.

commit 52f2a6c7fc42b64c0cc826a5988f56f81270decd
Author: Juri Grabowski <git-commit at jugra.de>
Date:   Thu Jul 19 18:06:08 2018 +0200

    add excludes
---
 README.txt             | 29 ++++++++++-------------------
 config/rootfs/excludes |  5 +++++
 2 files changed, 15 insertions(+), 19 deletions(-)

diff --git a/README.txt b/README.txt
index 4f07368..0d3c5d8 100644
--- a/README.txt
+++ b/README.txt
@@ -16,6 +16,7 @@ FQDN=demo.x2go.org
 IP_OF_FQDN=`dig $FQDN +short`
 
 # just a part of dhcpd.conf from isc-dhcp-server package:
+group {
    if substring ( option vendor-class-identifier , 19,1 ) = "0" {
            filename "bios/undionly.kpxe";
    }
@@ -26,37 +27,27 @@ IP_OF_FQDN=`dig $FQDN +short`
            log (info, concat ( "Unhandled vendor class Arch: ", substring ( option vendor-class-identifier , 19,1 )));
    }
    if exists user-class and option user-class = "iPXE" {
-	set hwmac = concat (
-	suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,1,1))),2), ":",
-	suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,2,1))),2), ":",
-	suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,3,1))),2), ":",
-	suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,4,1))),2), ":",
-	suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,5,1))),2), ":",
-	suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware,6,1))),2)
-	);
-
-      filename = concat( "http://$FQDN/", hwmac );
+      filename = "http://$FQDN/myhw";
    }
+   host examplehost { hardware ethernet 0:0:c0:5d:bd:95; }
+
+}
 
 # Actual build starts here
 
 DIR=/srv/live-build-x2go-`date +"%Y%m%d%H%M%S"`
 mkdir $DIR
 cd $DIR
-lb config --chroot-filesystem squashfs --apt-indices none --cache-packages false --config https://github.com/LinuxHaus/live-build-x2go.git --archive-areas "main contrib non-free" --apt-recommends true --firmware-binary true --updates true --backports true --win32-loader false --loadlin false --security true  --initsystem systemd  -b netboot -a i386 -k amd64 --linux-packages linux-image --bootappend-live aufs rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0 vconsole.keymap=de-latin1-nodeadkeys kernel.s [...]
+lb config --debootstrap-options "--exclude=nano,iptables,dmidecode,info" --apt-source-archives false --cache false --apt-http-proxy http://approx:3142 --chroot-filesystem squashfs --apt-indices none --cache-packages false --config https://github.com/LinuxHaus/live-build-x2go.git::master --archive-areas "main contrib" --apt-recommends false --firmware-chroot false --firmware-binary false --updates true --backports false --win32-loader false --loadlin false --security true  --initsystem sy [...]
 lb build
 cd `dirname $DIR`
 ln -s `basename $DIR` lb-x2go
 cd /var/www/html
-ln -s /srv/lb-x2go/binary/live/initrd.img .
-ln -s /srv/lb-x2go/binary/live/vmlinuz .
-ln -s /srv/lb-x2go/binary/live/filesystem.squashfs .
-YOURHW=myhw
-cat <<EOF>$YOURHW
+ln -s /srv/lb-x2go/binary/live .
+cat <<EOF>myhw
 #!ipxe
 dhcp
-kernel http://$FQDN/vmlinuz boot=live components fetch=http://$IP_OF_FQDN/filesystem.squashfs noswap aufs rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0 vconsole.keymap=de-latin1-nodeadkeys kernel.sysrq=1 keep_bootcon sysrq_always_enabled rd.driver.pre=loop rd.noverifyssl rd.skipfsck rd.live.overlay.check rd.live.overlay.reset rd.live.ram log_buf_len=1M quickreboot silent splash toram lang=de locales=de_DE.UTF-8 keyboard-layouts=de consoleblank=0 quiet kernel.sysrq=1 keep_bootcon sysrq_always_enable [...]
-initrd http://$FQDN/initrd.img
+kernel http://$FQDN/live/vmlinuz boot=live components fetch=http://$IP_OF_FQDN/live/filesystem.squashfs noswap vconsole.keymap=de-latin1-nodeadkeys log_buf_len=1M quickreboot silent splash toram lang=de locales=de_DE.UTF-8 keyboard-layouts=de consoleblank=0 quiet kernel.sysrq=1 keep_bootcon sysrq_always_enabled initrd=initrd.img rootwait=120 live-config
+initrd http://$FQDN/live/initrd.img
 boot
 EOF
-ln -s myhw $MAC_OF_YOURCLIENT
diff --git a/config/rootfs/excludes b/config/rootfs/excludes
new file mode 100644
index 0000000..d0c280c
--- /dev/null
+++ b/config/rootfs/excludes
@@ -0,0 +1,5 @@
+usr/share/doc/*
+usr/share/locale/*
+usr/share/man/*
+var/lib/apt/lists/*
+boot/*

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list