Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!
| author | Michael Prokop <mika@grml.org> |
| Mon Nov 26 15:11:21 2007 +0100 (12 months ago) | |
| changeset 337 | 41f79c09e251 |
| manifest | 41f79c09e251 |
| parent 336 | 14ccef690f80 |
| parent 335 | f96c13ae469d |
| child 338 | 5923d9b173c3 |
--- a/debian/changelog Mon Nov 26 15:11:10 2007 +0100+++ b/debian/changelog Mon Nov 26 15:11:21 2007 +0100@@ -9,16 +9,47 @@ grml-live (0.0.11) unstable; urgency=lowgrml-live (0.0.10) unstable; urgency=low+ * Drop patches which are part of FAI 3.2.3 now. Depend on+ FAI version 3.2.3 therefor.+ * FAI 3.2.3 has a new log schema, adjusted grml-live accordingly.+ Quoting the NEWS file of FAI:+ - LOGDIR is now /var/log/fai/$HOSTNAME/$FAI_ACTION_date+time+ - LOGDIR is /tmp/fai during an installation (not dirinstall), and+ will be copied to the path above at the end of an installation+ * Log the executed FAI, squashfs and mkisofs command lines to+ /var/log/grml-live.log.+ * New option '-C <configuration_file>' for specifying a configuration+ file. Needs heavy testing though, because the files are updated+ during runtime it isn't as easy as expected to be. :-/+ * Support $ZERO_FAI_LOGFILE inside grml-live configuration for removing+ old FAI logs.* Do not enable apt-listbugs if the binary is not available.[Testing: issue340]- * Add keychain package to GRML_MEDIUM.* Add keychain package to GRML_SMALL.+ * Add new packages to GRML_MEDIUM:+ - grml-live+ - keychain+ - lzma-modules-2.6.23-grml+ - squashfs-modules-2.6.23-grml (we build the module external now)+ * Add new packages to GRML_FULL:+ - aosd-cat+ - grml-live+ - lzma-modules-2.6.23-grml+ - squashfs-modules-2.6.23-grml (we build the module external now)+ * Support loading of squashfs module via+ /etc/grml/fai/live-initramfs/grml-script.init-top+ * Make sure we have pinning for grml-stable and grml-testing+ repositories via /etc/grml/fai/apt/preferences, not matter where+ the packages come from (web vs. local mirror/cache for example).+ * Remove base.tgz from chroot directory.* Do not create /etc/sysconfig/network-scripts and/etc/sysconfig/provider any longer in cleanup script.* Fix typo in bootsplash f3 (thanks, jimmy).* Switch order of 'lang=us apm=power-off' to 'apm=poweroff' inisolinyx/syslinux/grub configuration because getbootparamof grml-autoconfig requires a whitespace inside /proc/cmdline.+ * Support grml2ram bootoption inside isolinyx/syslinux/grub+ configuration.-- Michael Prokop <mika@grml.org> Mon, 19 Nov 2007 12:49:37 +0100
--- a/debian/control Mon Nov 26 15:11:10 2007 +0100+++ b/debian/control Mon Nov 26 15:11:21 2007 +0100@@ -10,7 +10,7 @@ XS-Vcs-Browser: http://hg.grml.org/grml-Package: grml-liveArchitecture: all-Depends: fai-client (>= 3.2), fai-server (>= 3.2), memtest86+ [i386 amd64], mkisofs, squashfs-tools, syslinux [i386 amd64], wget+Depends: fai-client (>= 3.2.3), fai-server (>= 3.2.3), memtest86+ [i386 amd64], mkisofs, squashfs-tools, syslinux [i386 amd64], wgetSuggests: fai-docDescription: build system for creating a grml (based) live-cdThis package provides the build system for creating
--- a/debian/rules Mon Nov 26 15:11:10 2007 +0100+++ b/debian/rules Mon Nov 26 15:11:21 2007 +0100@@ -38,7 +38,6 @@ install: buildcp -a examples debian/grml-live/usr/share/doc/grml-live/cp -a templates debian/grml-live/usr/share/grml-live/cp -a scripts debian/grml-live/usr/share/grml-live/- cp -a patches debian/grml-live/usr/share/grml-live/cp -a buildd/*.sh debian/grml-live/usr/share/grml-live/buildd/install -o root -m 640 buildd/grml-buildd.conf debian/grml-live/etc/grml/grml-buildd.confinstall -o root -m 755 grml-live debian/grml-live/usr/sbin/grml-live
--- a/docs/grml-live.txt Mon Nov 26 15:11:10 2007 +0100+++ b/docs/grml-live.txt Mon Nov 26 15:11:21 2007 +0100@@ -17,7 +17,7 @@ grml-live [-a <architecture>] [-c <class*******************************************************************************Important! This document is growing as requested. If you have questions whicharen't answered by this document yet please let me know: <mika@grml.org>!-This document currently applies to grml-live version 0.0.6.+This document currently applies to grml-live version 0.0.10.*******************************************************************************Description@@ -72,6 +72,22 @@ can specify a class providing a grml-ker/etc/grml/fai/config/package_config/ for a full list). So instead of GRML_SMALLyou can also use GRML_MEDIUM and GRML_FULL instead.+ -C **CONFIGURATION_FILE**::++The specified file is used as configuration file for grml-live. By default+/etc/grml/grml-live.conf is used for main configuration. If a file named+/etc/grml/grml-live.local exists it is used as well (sourced after reading+/etc/grml/grml-live.conf to allow overriding settings). As a last option the+specified configuration file is sourced so it is possible to override settings+of /etc/grml/grml-live.conf as well as of /etc/grml/grml-live.local. Please+notice that all configuration files have to be adjusted during execution of+grml-live, so please make sure you use /etc/grml/grml-live.conf as a base for+your own configuration file. Please also notice that the configuration file+specified via this option is **not** (yet) supported inside the+scripts/hooks/classes at /etc/grml/fai/config. Instead use+/etc/grml/grml-live.conf and/or /etc/grml/grml-live.local for configuration+stuff used inside /etc/grml/fai/config.+-F::Force execution and do not prompt for acknowledgment of configuration.@@ -107,7 +123,7 @@ Specify the Debian suite you want to use-t **TEMPLATE_DIRECTORY**::-Specify place of the templates used for building the ISO. By default+Specify place of the templates used for building the ISO. By default(and if not manually specified) this is /usr/share/grml-live/templates/.-u::@@ -304,14 +320,11 @@ Available log filesgrml-live itself logs to /var/log/grml-live.log. Unless you set ZERO_LOGFILE in/etc/grml/grml-live.conf the output is appended to the file. If you set the-ZERO_LOGFILE configuration option the logfile will be truncated on a new+ZERO_LOGFILE configuration option the logfile will be truncated on each newinvocation of grml-live.-The FAI part of grml-live logs to /var/log/fai/dirinstall/$HOSTNAME - so the-default being /var/log/fai/dirinstall/grml.--If you are using the update option of grml-live (option -u) the logs are-available at /var/log/fai/current.+The FAI part of grml-live logs to /var/log/fai/$HOSTNAME/ - so the+default being /var/log/fai/grml/.If you are using the grml-live buildd you will find the logs of the grml-liverun at /var/log/grml-buildd.stdout and /var/log/grml-buildd.stderr.@@ -339,9 +352,10 @@ Help, I'm using Debian etch and I don'tHelp, I'm using Debian etch and I don't have FAI version >3.2~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- wget http://www.informatik.uni-koeln.de/fai/download/etch/fai-client_3.2.1_all.deb \- http://www.informatik.uni-koeln.de/fai/download/etch/fai-server_3.2.1_all.deb- dpkg -i fai-client_3.2.1_all.deb fai-server_3.2.1_all.deb+ wget http://www.informatik.uni-koeln.de/fai/download/etch/fai-client_3.2.3_all.deb \+ http://www.informatik.uni-koeln.de/fai/download/etch/fai-server_3.2.3_all.deb \+ http://www.informatik.uni-koeln.de/fai/download/etch/fai-doc_3.2.3_all.deb+ dpkg -i fai-client_3.2.3_all.deb fai-server_3.2.3_all.deb fai-doc_3.2.3_all.debor check out the link:http://www.informatik.uni-koeln.de/fai/[FAI-homepage] forfurther details.@@ -349,14 +363,14 @@ I've problems with the build process. HoI've problems with the build process. How to start debugging?~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-Check out the logs inside /var/log/fai/dirinstall/... If you don't have the time-to debug the problem in further detail or don't know how to proceed just send a-copy of your config, logs and the commandline with a short problem description-to <mika@grml.org>:+Check out the logs inside /var/log/fai/... If you don't have the time to debug+the problem in further detail or don't know how to proceed just send a copy of+your config, logs and the commandline with a short problem description to+<mika@grml.org>:# history | grep grml-live > /etc/grml/grml_live.cmdline# tar zcf grml_live_problem.tar.gz /etc/grml/grml-live.conf \- /var/log/fai/dirinstall /etc/grml/fai+ /etc/grml/grml-buildd.conf /var/log/fai /etc/grml/faiCan I use my own (local) Debian mirror?~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- a/etc/grml/fai/apt/preferences Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/apt/preferences Mon Nov 26 15:11:21 2007 +0100@@ -5,10 +5,19 @@ Pin-Priority: 997// main grml-repository:Package: *+Pin: release o=The grml project,a=grml-testing,l=grml,c=main+Pin-Priority: 996++Package: *+Pin: release o=The grml project,a=grml-stable,l=grml,c=main+Pin-Priority: 995++Package: *Pin: origin deb.grml.org-Pin-Priority: 996+Pin-Priority: 994// debian unstable pool (default):Package: *Pin: release a=unstable,o=DebianPin-Priority: 991+
--- a/etc/grml/fai/config/hooks/instsoft.GRMLBASE Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/hooks/instsoft.GRMLBASE Mon Nov 26 15:11:21 2007 +0100@@ -4,7 +4,7 @@# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org># Bug-Reports: see http://grml.org/bugs/# License: This file is licensed under the GPL v2 or any later version.-# Latest change: Mon Nov 12 11:14:32 CET 2007 [mika]+# Latest change: Sun Nov 25 18:28:54 CET 2007 [mika]################################################################################set -u@@ -14,7 +14,8 @@ echo grml_chroot > $target/etc/debian_checho grml_chroot > $target/etc/debian_chrootHOSTNAME=''-[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local[ -n "$HOSTNAME" ] || HOSTNAME=grmlecho "$HOSTNAME" > $target/etc/hostname@@ -22,11 +23,11 @@ if [ "$FAI_ACTION" = "softupdate" ] ; thecho "Softupdate of FAI via grml-live running"if [ -r /etc/resolv.conf ] ; then- if [ -r $target/etc/resolvconf/run/resolv.conf ] ; then- cat /etc/resolv.conf >> $target/etc/resolvconf/run/resolv.conf- else- cat /etc/resolv.conf >> $target/etc/resolv.conf- fi+ if [ -r $target/etc/resolvconf/run/resolv.conf ] ; then+ cat /etc/resolv.conf >> $target/etc/resolvconf/run/resolv.conf+ else+ cat /etc/resolv.conf >> $target/etc/resolv.conf+ fifiif [ -r $target/etc/policy-rc.d.conf ] ; then@@ -56,6 +57,8 @@ EOFfifi+ # FAI softupdate executes upgrade only with the sources.list being+ # present in the chroot :-/ - so let's do it on our own:if [ -r /etc/grml/fai/apt/sources.list ] ; thenif [ -L $target/etc/apt/sources.list ] ; thenrm $target/etc/apt/sources.list@@ -63,10 +66,9 @@ EOFcp /etc/grml/fai/apt/sources.list $target/etc/apt/sources.listfi- # FAI softupdate does not execute upgrade, so let's do it on our own:$ROOTCMD apt-get updateif [ -x $target/usr/bin/aptitude ] ; then- if strings $target/usr/bin/aptitude | grep safe-upgrade 1>/dev/null ; then+ if $ROOTCMD aptitude --help | grep -q safe-upgrade ; then$ROOTCMD aptitude -y safe-upgradeelse$ROOTCMD aptitude -y upgrade
--- a/etc/grml/fai/config/package_config/GRML_FULL Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/package_config/GRML_FULL Mon Nov 26 15:11:21 2007 +0100@@ -70,6 +70,7 @@ grml-firefoxgrml-firefoxgrml-hwinfogrml-laptop+grml-livegrml-mercurial-utilsgrml-networkgrml-policyrcd@@ -165,9 +166,9 @@ ack-grepack-grepaclacpi-acpi-supportacpidacpidump+acpi-supportacpitailacpitooladduser@@ -181,20 +182,21 @@ alienalienalsa-basealsa-oss-alsa-utilsalsaplayer-alsaalsaplayer-commonalsaplayer-gtkalsaplayer-jackalsaplayer-oss+alsa-utilsamanda-clientamanda-commonanacronantiwordaoetools+aosd-cat+apache2.2-commonapache2-mpm-preforkapache2-utils-apache2.2-commonapcupsdapcupsd-cgiapel@@ -205,8 +207,10 @@ aptaptapt-dpkg-refapt-file+aptitudeapt-listbugsapt-listchanges+aptshapt-show-sourceapt-show-versionsapt-spy@@ -214,21 +218,19 @@ apt-transport-httpsapt-transport-httpsapt-utilsapt-zip-aptitude-aptshapwalaraarchivemailargus-clientaria2arj+arpingarp-scan-arpingarptablesarpwatcharray-info+arrayprobearray-util-arrayprobeasciiascii2binaryasciidoc@@ -266,8 +268,8 @@ awesomeawesomeaxelaxp+backup2lbackup-manager-backup2lbackuppcbacula-commonbacula-console@@ -297,8 +299,8 @@ binclockbinclockbind9bind9-host+binfmtcbinfmt-support-binfmtcbingbinstatsbinutils@@ -335,10 +337,10 @@ bzip2bzip2bzrc3270-ca-certificatescabbercabextractcaca-utils+ca-certificatescadavercalcursecalife@@ -353,12 +355,12 @@ ccontrolccontrolccryptccze-cd-discidcdbackupcdbscdckcdda2wavcddb+cd-discidcdebootstrapcdeclcdparanoia@@ -374,7 +376,6 @@ cfengine2cfengine2cfvcgdb-checkcheckcheopschkrootkit@@ -421,8 +422,8 @@ cpulimitcpulimitcrackcrack-common+cracklib2cracklib-runtime-cracklib2cramfsprogscroncrosshurd@@ -446,8 +447,8 @@ curlcurlcurlftpfscvs+cvs2clcvs-buildpackage-cvs2clcvsconnectcvsdeltacw@@ -500,14 +501,14 @@ deviodeviodevscriptsdevtodo-dh-kpatches-dh-make-dh-make-perldhcp3-clientdhcp3-commondhcp3-serverdhcpdumpdhcping+dh-kpatches+dh-make+dh-make-perldidiakonosdialog@@ -538,9 +539,9 @@ dnstracerdnstracerdnsutilsdocbook+docbook2odfdocbook-dsssldocbook-to-man-docbook2odfdogdoscandosfstools@@ -572,9 +573,9 @@ duploadduploaddurepdvb-utils-dvd+rw-toolsdvdbackupdvdisaster+dvd+rw-toolsdvi2ttydvipngdviutils@@ -644,8 +645,8 @@ facterfacterfai-clientfai-doc+fail2banfai-server-fail2banfakefakechrootfakeroot@@ -664,8 +665,8 @@ fetchmailfetchmailfgettyfile+fileppfile-rc-fileppfiletraqfileutilsfindimagedupes@@ -673,9 +674,9 @@ fingerfingerfireholfish-fl-cowflashromflawfinder+fl-cowflexflexbackupflite@@ -701,17 +702,17 @@ freeradius-ldapfreeradius-ldapfreesweepftp+ftpcopyftp-upload-ftpcopyftpwatchfttoolsfunionfsfunny-manpages-fuse-utilsfusedavfuseisofuseiso9660fusesmb+fuse-utilsfvwmfwlogwatchfxload@@ -750,12 +751,12 @@ gitwebgitwebgkermitgkrellm+gkrellmd+gkrellmitimegkrellm-remindergkrellm-volume+gkrellmwirelessgkrellm-x86info-gkrellmd-gkrellmitime-gkrellmwirelessgkrellshootgkrellweatherglark@@ -811,11 +812,11 @@ hicolor-icon-themehicolor-icon-themehnbhoneyd+hostapdhostap-utils-hostapdhostname+hotkeyshotkey-setup-hotkeyshotswap-texthozhpijs@@ -859,14 +860,14 @@ iiiiiisemulatorike-scan-im-switchimagemagickimapcopyimapfilterimediff2+imlib11imlib-base-imlib11imsniff+im-switchimwheelinadynindent@@ -966,17 +967,17 @@ laptop-detectlaptop-detectlaptop-mode-toolslatex-beamer+latexmklatex-mklatex-xcolor-latexmklbdblcap-ld.so.preload-manager+ldapscriptsldap-utils-ldapscriptsldapvildeldnsutils+ld.so.preload-managerleavelesslft@@ -1000,10 +1001,10 @@ links2links2linneighborhoodlintian+linuxdoc-tools+linuxlogolinux-sound-baselinux-wlan-ng-linuxdoc-tools-linuxlogolistadminlive-initramfslkl@@ -1131,15 +1132,15 @@ mrbmrbmrxvtmrxvt-common-ms-sysmsmtpmsort-mt-st+ms-sysmtd-toolsmtools+mtpaintmtp-tools-mtpaintmtr-tiny+mt-stmulti-atermmultipath-toolsmultitail@@ -1172,10 +1173,9 @@ neneneditnemesis-nessus-pluginsnessusclientnessusd-net-tools+nessus-pluginsnetbasenetcatnetcat6@@ -1186,14 +1186,15 @@ nethogsnethogsnetmasknetpbm+netpipesnetpipe-tcp-netpipesnetriknetrisnetrwnetsednetstat-natnetsurf+net-toolsnetwagnetwoxnewsbeuter@@ -1233,12 +1234,12 @@ olsrd-pluginsolsrd-pluginsopopalmod-open-iscsiopenafs-clientopenafs-krb5openboxopenbsd-inetdopenipmi+open-iscsiopenjadeopenscopenssh-client@@ -1249,9 +1250,9 @@ opie-clientopie-clientorangeorpheus-os-proberosdshosiris+os-probeross-compatp0fp3nfs@@ -1276,8 +1277,8 @@ patchutilspatchutilspavukpax+paxctlpax-utils-paxctlpbuilderpbzip2pciutils@@ -1304,10 +1305,10 @@ perlperlperl-baseperl-doc+perlmagickperl-modulesperl-suidperl-tk-perlmagickpfqueuepgfpia@@ -1347,8 +1348,8 @@ powermgmt-basepowermgmt-basepowernowdpowertop+powertweakdpowertweak-gtk-powertweakdpperlppmdppp@@ -1356,8 +1357,8 @@ pppoepppoepppoeconfpppstatus+pptpdpptp-linux-pptpdpreloadpreview-latex-styleprismstumbler@@ -1391,6 +1392,10 @@ pydbpydbpymacspython+python2.4+python2.4-minimal+python2.5+python2.5-minimalpython-aptpython-cddbpython-celementtree@@ -1418,10 +1423,6 @@ python-supportpython-supportpython-twisted-binpython-urwid-python2.4-python2.4-minimal-python2.5-python2.5-minimalpytrisqc-usb-utilsqjackctl@@ -1491,9 +1492,9 @@ rtorrentrtorrentrubiliciousruby-ruby-profruby1.8ruby1.8-examples+ruby-profrungettyrunitrutilt@@ -1521,8 +1522,8 @@ screenscreenscreeniescrot+scsiaddscsi-idle-scsiaddscsitoolssdatesdd@@ -1553,8 +1554,8 @@ sicsicsigitsing+sipsaksip-tester-sipsaksitecopysjogsl@@ -1573,11 +1574,11 @@ smsmsmakesmartmontools-smb-natsmbcsmbclientsmbfssmbldap-tools+smb-natsmbnetfssnsnarf@@ -1591,8 +1592,8 @@ sound-recordersound-recordersoxsp+speechd-elspeech-dispatcher-speechd-elspeedometerspeexspell@@ -1650,7 +1651,6 @@ systunesystunesysvinitsysvinit-utils-t-prottagtooltailortaktuk@@ -1676,8 +1676,8 @@ tcttcttdltelak+telnetd-ssltelnet-ssl-telnetd-ssltestdisktetradrawtetrinet-client@@ -1715,6 +1715,7 @@ toshutilstoshutilstpconfigtpp+t-prottratraceprototraceroute@@ -1771,8 +1772,8 @@ urukurukusbutilsusbview+userinfouser-setup-userinfouswsusputil-linuxutil-linux-locales@@ -1806,8 +1807,8 @@ vncommandvncommandvnstatvobcopy+vorbisgainvorbis-tools-vorbisgainvpncvrfyvrms@@ -1828,8 +1829,8 @@ wcalcwcalcwdiffwebcam+webcamdwebcam-server-webcamdwebcheckwebcppweblint-perl@@ -1861,10 +1862,9 @@ wpasupplicantwpasupplicantwprintwput+wvdialwwwconfig-common-wvdialwyrd-x-ttcidfont-confx11-commonx11vncx2x@@ -1995,6 +1995,7 @@ xtermsetxtermsetxtracextrlock+x-ttcidfont-confxtvxutilsxutils-dev@@ -2079,6 +2080,7 @@ linux-image-2.6.23-grml#linux-source-2.6.23-grmllinux-wlan-ng-modules-2.6.23-grmlloop-aes-modules-2.6.23-grml+lzma-modules-2.6.23-grmlmadwifi-modules-2.6.23-grmlndiswrapper-modules-2.6.23-grmlnozomi-modules-2.6.23-grml@@ -2090,6 +2092,7 @@ rt2500-modules-2.6.23-grmlrt2500-modules-2.6.23-grmlrt73-module-2.6.23-grmlsl-modem-modules-2.6.23-grml+squashfs-modules-2.6.23-grmlsysprof-module-2.6.23-grmltp-smapi-modules-2.6.23-grmltruecrypt-2.6.23-grml
--- a/etc/grml/fai/config/package_config/GRML_MEDIUM Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/package_config/GRML_MEDIUM Mon Nov 26 15:11:21 2007 +0100@@ -74,6 +74,7 @@ grml-etcgrml-etcgrml-etc-coregrml-hwinfo+grml-livegrml-networkgrml-policyrcdgrml-rebuildfstab@@ -266,8 +267,7 @@ zshzshPACKAGES aptitude I386-linux-image-2.6.23-grml aufs-modules-2.6.23-grml grml-kerneladdons-2.6.23-# linux-image-2.6.22-grml aufs-modules-2.6.22-grml grml-kerneladdons-2.6.22+linux-image-2.6.23-grml squashfs-modules-2.6.23-grml lzma-modules-2.6.23-grml aufs-modules-2.6.23-grml grml-kerneladdons-2.6.23PACKAGES aptitude AMD64linux-image-2.6.23-grml64 aufs-modules-2.6.23-grml64
--- a/etc/grml/fai/config/scripts/GRMLBASE/05-hostname Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/scripts/GRMLBASE/05-hostname Mon Nov 26 15:11:21 2007 +0100@@ -11,7 +11,8 @@ set -eset -eHOSTNAME=''-[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local[ -n "$HOSTNAME" ] || HOSTNAME=grmlecho "$HOSTNAME" > $target/etc/hostname
--- a/etc/grml/fai/config/scripts/GRMLBASE/20-sudo Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/scripts/GRMLBASE/20-sudo Mon Nov 26 15:11:21 2007 +0100@@ -11,7 +11,8 @@ set -eset -eUSERNAME=''-[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local[ -n "$USERNAME" ] || USERNAME=grmlif [ -r /etc/grml/fai/files/etc/sudoers ] ; then
--- a/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/scripts/GRMLBASE/21-usersetup Mon Nov 26 15:11:21 2007 +0100@@ -11,7 +11,8 @@ set -eset -eUSERNAME=''-[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local[ -n "$USERNAME" ] || USERNAME=grmlif grep -q "$USERNAME:x:1000" $target/etc/group ; then
--- a/etc/grml/fai/config/scripts/GRMLBASE/30-fstab Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/scripts/GRMLBASE/30-fstab Mon Nov 26 15:11:21 2007 +0100@@ -11,7 +11,8 @@ set -eset -eUSERNAME=''-[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local[ -n "$USERNAME" ] || USERNAME=grmlif [ -r /etc/grml/fai/files/etc/fstab ] ; then
--- a/etc/grml/fai/config/scripts/GRMLBASE/34-hosts Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/scripts/GRMLBASE/34-hosts Mon Nov 26 15:11:21 2007 +0100@@ -11,7 +11,8 @@ set -eset -eHOSTNAME=''-[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local[ -n "$HOSTNAME" ] || HOSTNAME=grmlif [ -r /etc/grml/fai/files/etc/hosts ] ; then
--- a/etc/grml/fai/config/scripts/GRMLBASE/95-package-information Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/scripts/GRMLBASE/95-package-information Mon Nov 26 15:11:21 2007 +0100@@ -8,15 +8,21 @@################################################################################HOSTNAME=''-[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+[ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local[ -n "$HOSTNAME" ] || HOSTNAME=grml++if ! [ -d /var/log/fai/"$HOSTNAME"/last/ ] ; then+ echo "Error: /var/log/fai/"$HOSTNAME"/last/ not available. Exiting.">&2+ exit 1+fiif [ -x $target/usr/bin/dpkg-query ] ; then$ROOTCMD dpkg-query -W --showformat='${Package}\t${Installed-Size;10}\n' > \- /var/log/fai/dirinstall/$HOSTNAME/packages.size+ /var/log/fai/$HOSTNAME/last/packages.sizefi-COLUMNS=200 $ROOTCMD dpkg --list > /var/log/fai/dirinstall/$HOSTNAME/dpkg.list-COLUMNS=200 $ROOTCMD dpkg --get-selections > /var/log/fai/dirinstall/$HOSTNAME/dpkg.selections+COLUMNS=200 $ROOTCMD dpkg --list > /var/log/fai/$HOSTNAME/last/dpkg.list+COLUMNS=200 $ROOTCMD dpkg --get-selections > /var/log/fai/$HOSTNAME/last/dpkg.selections## END OF FILE #################################################################
--- a/etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/config/scripts/GRMLBASE/96-apt-listbugs Mon Nov 26 15:11:21 2007 +0100@@ -29,7 +29,8 @@ if ifclass RELEASE ; thenif ifclass RELEASE ; thenHOSTNAME=''- [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+ [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf+ [ -r /etc/grml/grml-live.local ] && . /etc/grml/grml-live.local[ -n "$HOSTNAME" ] || HOSTNAME=grmlif [ -r /etc/resolv.conf ] ; then
--- a/etc/grml/fai/live-initramfs/grml-script.init-top Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/fai/live-initramfs/grml-script.init-top Mon Nov 26 15:11:21 2007 +0100@@ -127,6 +127,11 @@ if ! grep -qe debug -qe verbose /proc/cm[ -r /proc/sys/kernel/printk ] && echo "0" > /proc/sys/kernel/printkfi+# Make sure we support squashfs:+if ! grep -q squashfs /proc/filesystems ; then+ modprobe -q squashfs || log_grml_failure_msg "Warning: look like you do not have support for squashfs"+fi+if grep -q 'boot=live' /proc/cmdline 2>/dev/null ; thenlog_grml_begin_msg "Finished early booting sequence." ; echo "$SUCCESS"log_grml_begin_msg "Searching for GRML file, this might take a few seconds..."
--- a/etc/grml/grml-live.conf Mon Nov 26 15:11:10 2007 +0100+++ b/etc/grml/grml-live.conf Mon Nov 26 15:11:21 2007 +0100@@ -3,7 +3,7 @@# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org># Bug-Reports: see http://grml.org/bugs/# License: This file is licensed under the GPL v2 or any later version.-# Latest change: Sun Oct 28 16:26:36 CET 2007 [mika]+# Latest change: Sun Nov 25 18:39:34 CET 2007 [mika]################################################################################# Main output directory@@ -24,6 +24,12 @@ ISO_OUTPUT="$OUTPUT/grml_isos"# store /var/log/grml-live.log after each invocation of grml-live.# Default: unset (so do not zero the logfile)#ZERO_LOGFILE='1'++# Do you want to zero / clean up / remove the previous logfiles of FAI+# before executing grml-live? Otherwise keep all the logfiles inside+# /var/log/fai/$HOSTNAME/...+# Default: unset (so do not remove the logfile(s))+#ZERO_FAI_LOGFILE='1'# Which Debian suite to you want to use? Unless it is set it defaults to "etch"# Supported values are: etch, lenny, sid
--- a/grml-live Mon Nov 26 15:11:10 2007 +0100+++ b/grml-live Mon Nov 26 15:11:21 2007 +0100@@ -4,7 +4,7 @@# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org># Bug-Reports: see http://grml.org/bugs/# License: This file is licensed under the GPL v2 or any later version.-# Latest change: Mon Nov 05 09:24:45 CET 2007 [mika]+# Latest change: Sun Nov 25 20:08:06 CET 2007 [mika]################################################################################# read configuration files, set some misc variables {{{@@ -15,7 +15,7 @@ export LC_ALL=C# exit on any error:set -e-GRML_LIVE_VERSION='0.0.7'+GRML_LIVE_VERSION='0.0.10'CMDLINE="$0 $@"ISO_DATE="$(date +%Y-%m-%d)"@@ -31,6 +31,7 @@ if [ -r /var/run/fai/FAI_INSTALLATION_INexit 1fi+# see #449236if [ -r /var/run/fai/fai_softupdate_is_running ] ; thenecho "/usr/sbin/fai softupdate already running or was aborted before.">&2echo "You may remove /var/run/fai/fai_softupdate_is_running and try again.">&2@@ -67,6 +68,7 @@ bailout() {log "------------------------------------------------------------------------------"exit "$EXIT"}+# trap bailout 1 2 3 6 9 14 15trap bailout 1 2 3 15# }}}@@ -89,9 +91,16 @@ touch $LOGFILEtouch $LOGFILEchown root:adm $LOGFILEchmod 640 $LOGFILE-# clean/zero logfile:+# clean/zero grml-live logfile:if [ -n "$ZERO_LOGFILE" ] ; thenecho -n > $LOGFILE+fi++# clean/zero/remove old FAI directory:+if [ -n "$ZERO_FAI_LOGFILE" ] ; then+ if [ -d /var/log/fai/"$HOSTNAME" ] ; then+ rm -rf /var/log/fai/"$HOSTNAME"/"$(readlink /var/log/fai/"$HOSTNAME"/last)"+ fifiNFSROOT_CONF=/etc/grml/fai/make-fai-nfsroot.conf@@ -178,10 +187,11 @@ http://grml.org/bugs/# command line parsing {{{-while getopts "a:c:g:i:o:r:s:t:v:FhuV" opt; do+while getopts "a:C:c:g:i:o:r:s:t:v:FhuV" opt; docase "$opt" ina) ARCH="$OPTARG" ;;c) CLASSES="$OPTARG" ;;+ C) CONFIG="$OPTARG" ;;g) GRML_NAME="$OPTARG" ;;i) ISO_NAME="$OPTARG" ;;o) OUTPUT="$OPTARG"@@ -217,6 +227,7 @@ if [ -z "$FORCE" ] ; thenechoecho " FAI classes: $CLASSES"echo " main directory: $OUTPUT"+ [ -n "$CONFIG" ] && echo " configuration: $CONFIG"[ -n "$CHROOT_OUTPUT" ] && echo " chroot target: $CHROOT_OUTPUT"[ -n "$BUILD_OUTPUT" ] && echo " build target: $BUILD_OUTPUT"[ -n "$ISO_OUTPUT" ] && echo " ISO target: $ISO_OUTPUT"@@ -240,10 +251,31 @@ if [ -z "$FORCE" ] ; thenechofi+# read local (non-packaged) configuration:+LOCAL_CONFIG=/etc/grml/grml-live.local+if [ -r "$LOCAL_CONFIG" ] ; then+ log "Sourcing $LOCAL_CONFIG"+ . $LOCAL_CONFIG+else+ LOCAL_CONFIG=''+fi++if [ -n "$CONFIG" ] ; then+ if ! [ -f "$CONFIG" ] ; then+ log "Sorry, $CONFIG could not be read. Exiting. [$(date)]"+ eerror "Sorry, $CONFIG could not be read. Exiting."+ bailout 1+ else+ log "Sourcing $CONFIG"+ . $CONFIG+ fi+fi+start_seconds=$(cut -d . -f 1 /proc/uptime)log "------------------------------------------------------------------------------"log "Starting grml-live [${GRML_LIVE_VERSION}] run on $(date)"-log "Executed command line: $CMDLINE"+log "Executed grml-live command line:"+log "$CMDLINE"einfo "Logging actions to logfile $LOGFILE"# }}}@@ -269,10 +301,15 @@ fi# does this suck? YES!if [ -n "$SUITE" ] ; then- sed -i "s/SUITE=.*/SUITE=\"$SUITE\"/" $LIVE_CONF-- DIST="\|\ etch\ \|\ stable\ \|\ lenny\ \|\ testing\ \|\ sid\ \|\ unstable\ "- sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" $LIVE_CONF++ for file in "$LIVE_CONF" "$CONFIG" "$LOCAL_CONFIG" ; do+ if [ -n "$file" ] ; then+ sed -i "s/SUITE=.*/SUITE=\"$SUITE\"/" $LIVE_CONF+ DIST="\|\ etch\ \|\ stable\ \|\ lenny\ \|\ testing\ \|\ sid\ \|\ unstable\ "+ sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" $file+ fi+ done+sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" /etc/grml/fai/apt/sources.list# notice: activate grml-live pool only if we are building against unstable:if grep -qe unstable -qe sid /etc/grml/fai/apt/sources.list ; then@@ -284,7 +321,11 @@ if [ -n "$SUITE" ] ; thensed -i 's/.*grml-live.*/# removed grml-live repository/' /etc/grml/fai/apt/sources.listfi- sed -i "s|FAI_DEBOOTSTRAP=\"[a-z]* |FAI_DEBOOTSTRAP=\"$SUITE |" $LIVE_CONF+ for file in "$LIVE_CONF" "$CONFIG" "$LOCAL_CONFIG" ; do+ if [ -n "$file" ] ; then+ sed -i "s|FAI_DEBOOTSTRAP=\"[a-z]* |FAI_DEBOOTSTRAP=\"$SUITE |" "$file"+ fi+ donesed -i "s|FAI_DEBOOTSTRAP=\"[a-z]* |FAI_DEBOOTSTRAP=\"$SUITE |" $NFSROOT_CONFfi@@ -320,10 +361,14 @@ if [ -d "$CHROOT_OUTPUT/bin" -a -z "$UPDewarn "$CHROOT_OUTPUT exists already, skipping stage 'fai dirinstall'" ; eend 0elsemkdir -p "$CHROOT_OUTPUT" || bailout 5 "Problem with creating $CHROOT_OUTPUT for FAI"+if [ -n "${MIRROR_DIRECTORY}" ] ; thenmkdir -p "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"mount --bind "${MIRROR_DIRECTORY}" "${CHROOT_OUTPUT}/${MIRROR_DIRECTORY}"fi++ log "Executed FAI command line:"+ log "fai $VERBOSE -C $GRML_FAI_CONFIG -c$CLASSES -u $HOSTNAME $FAI_ACTION $CHROOT_OUTPUT $FAI_ARGS"fai $VERBOSE -C "$GRML_FAI_CONFIG" -c"$CLASSES" -u "$HOSTNAME" $FAI_ACTION "$CHROOT_OUTPUT" $FAI_ARGS | tee -a $LOGFILElog "Setting /etc/grml_version to $GRML_NAME $VERSION Release Codename $RELEASENAME [$ISO_DATE]"@@ -341,11 +386,7 @@ else# notice: 'fai dirinstall' does not seem to exit appropriate, so:ERROR=''- if [ -n "$UPDATE" ] ; then- CHECKLOG=/var/log/fai/current/- else- CHECKLOG=/var/log/fai/dirinstall/$HOSTNAME/- fi+ CHECKLOG=/var/log/fai/$HOSTNAME/lastif [ -r "$CHECKLOG/software.log" ] ; then# 1 errors during executing of commands# Unable to write mmap - msync (28 No space left on device)@@ -490,6 +531,11 @@ if [ -f "$BUILD_OUTPUT"/live/grml.squashewarn "$BUILD_OUTPUT/live exists already, skipping stage 'squashfs'" ; eend 0else[ -d "$BUILD_OUTPUT"/live ] || mkdir "$BUILD_OUTPUT"/live+ # make sure we don't leave (even an empty) base.tgz:+ [ -f "$CHROOT_OUTPUT/base.tgz" ] && rm -f "$CHROOT_OUTPUT/base.tgz"++ # execute squashfs:+ log "mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/grml.squashfs -noappend"mksquashfs $CHROOT_OUTPUT/* $BUILD_OUTPUT/live/grml.squashfs -noappendlog "Finished execution of stage 'squashfs' [$(date)]"einfo "Finished execution of stage 'squashfs'" ; eend 0@@ -517,6 +563,7 @@ elsemkdir -p "$ISO_OUTPUT" || bailout 6 "Problem with creating $ISO_OUTPUT for stage 'iso build'"CURRENT_DIR=$(pwd)cd "$BUILD_OUTPUT" &&+ log "mkisofs -V grml $VERSION -publisher 'grml-live | grml.org' -l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b $BOOT_FILE -o ${ISO_OUTPUT}/${ISO_NAME} ."mkisofs -V "grml $VERSION" -publisher 'grml-live | grml.org' \-l -r -J -no-emul-boot -boot-load-size 4 -boot-info-table \-b $BOOT_FILE \
--- a/templates/boot/grub/menu.lst Mon Nov 26 15:11:10 2007 +0100+++ b/templates/boot/grub/menu.lst Mon Nov 26 15:11:21 2007 +0100@@ -36,6 +36,14 @@ kernel /boot/isolinux/linux26 apm=power-kernel /boot/isolinux/linux26 apm=power-off lang=us vga=791 verbose debug=vc debug initrd=initrd.gz boot=live initcall_debug nomceinitrd /boot/isolinux/initrd.gz+title %GRML_NAME% %VERSION% - copy grml squashfs file to RAM+kernel /boot/isolinux/linux26 toram=grml.squashfs apm=power-off lang=us vga=791 quiet boot=live nomce+initrd /boot/isolinux/initrd.gz++title %GRML_NAME% %VERSION% - copy medium to RAM+kernel /boot/isolinux/linux26 toram apm=power-off lang=us vga=791 quiet boot=live nomce+initrd /boot/isolinux/initrd.gz+title %GRML_NAME% %VERSION% - forensic modekernel /boot/isolinux/linux26 vga=791 lang=us nofstab noraid nolvm noautoconfig noswap raid=noautodetect quiet initrd=initrd.gz boot=liveinitrd /boot/isolinux/initrd.gz
--- a/templates/boot/isolinux/isolinux.cfg Mon Nov 26 15:11:10 2007 +0100+++ b/templates/boot/isolinux/isolinux.cfg Mon Nov 26 15:11:21 2007 +0100@@ -29,8 +29,14 @@ MENU DEFAULTMENU DEFAULTKERNEL linux26APPEND apm=power-off lang=us vga=791 quiet initrd=initrd.gz boot=live nomce-# APPEND apm=power-off lang=us vga=791 live-media-path=/GRML quiet initrd=initrd.gz boot=live nomce+LABEL grml2ram+MENU LABEL grml2ram - Copy Squashfs file to RAM+MENU DEFAULT+KERNEL linux26+APPEND apm=power-off toram=grml.squashfs lang=us vga=791 quiet initrd=initrd.gz boot=live nomce++# deprecated:LABEL oldMENU LABEL oldKERNEL linux26
--- a/templates/boot/isolinux/syslinux.cfg Mon Nov 26 15:11:10 2007 +0100+++ b/templates/boot/isolinux/syslinux.cfg Mon Nov 26 15:11:21 2007 +0100@@ -29,8 +29,14 @@ MENU DEFAULTMENU DEFAULTKERNEL linux26APPEND apm=power-off lang=us vga=791 quiet initrd=initrd.gz boot=live nomce-# APPEND apm=power-off lang=us vga=791 live-media-path=/GRML quiet initrd=initrd.gz boot=live nomce+LABEL grml2ram+MENU LABEL grml2ram - Copy Squashfs file to RAM+MENU DEFAULT+KERNEL linux26+APPEND apm=power-off toram=grml.squashfs lang=us vga=791 quiet initrd=initrd.gz boot=live nomce++# deprecated:LABEL oldMENU LABEL oldKERNEL linux26
--- a/patches/fai_fix_debopts_vs_debopt.patch Mon Nov 26 15:11:10 2007 +0100+++ /dev/null Thu Jan 01 00:00:00 1970 +0000@@ -1,11 +0,0 @@---- /usr/sbin/fai 2007-10-17 21:20:47.000000000 +0000-+++ /usr/sbin/fai 2007-10-17 21:20:50.000000000 +0000-@@ -223,7 +223,7 @@-- export NFSROOT=$(source $FAI_ETC_DIR/make-fai-nfsroot.conf; echo $NFSROOT)- export FAI_DEBOOTSTRAP=$(source $FAI_ETC_DIR/make-fai-nfsroot.conf; echo $FAI_DEBOOTSTRAP)-- export FAI_DEBOOTSTRAP_OPT=$(source $FAI_ETC_DIR/make-fai-nfsroot.conf; echo $FAI_DEBOOTSTRAP_OPT)-+ export FAI_DEBOOTSTRAP_OPTS=$(source $FAI_ETC_DIR/make-fai-nfsroot.conf; echo $FAI_DEBOOTSTRAP_OPTS)-- fi-
--- a/patches/fai_mention_debopts.patch Mon Nov 26 15:11:10 2007 +0100+++ /dev/null Thu Jan 01 00:00:00 1970 +0000@@ -1,11 +0,0 @@---- /usr/lib/fai/subroutines-linux 2007-10-17 21:21:11.000000000 +0000-+++ /usr/lib/fai/subroutines-linux 2007-10-17 21:21:03.000000000 +0000-@@ -124,7 +124,7 @@-- local dversion=$(dpkg -l debootstrap | grep debootstrap | cut -f7 -d' ')- echo "Creating base system using debootstrap version $dversion"-- echo "Calling debootstrap $1 $FAI_ROOT $2"-+ echo "Calling debootstrap $1 $FAI_DEBOOTSTRAP_OPTS $FAI_ROOT $2"- yes '' | LC_ALL=C debootstrap $FAI_DEBOOTSTRAP_OPTS $1 $FAI_ROOT $2- }- # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--- a/patches/fai_support_aptitude_in_updatebase Mon Nov 26 15:11:10 2007 +0100+++ /dev/null Thu Jan 01 00:00:00 1970 +0000@@ -1,14 +0,0 @@---- /usr/lib/fai/updatebase.orig 2007-10-29 00:12:49.000000000 +0100-+++ /usr/lib/fai/updatebase 2007-10-29 00:13:27.000000000 +0100-@@ -31,7 +31,11 @@- [ $? -ne 0 ] && yes '' | $ROOTCMD dpkg --configure -a- # using the above value, causes an error: "dpkg need action"- export aptopt=-+if [ -x /usr/bin/aptitude ] ; then-+$ROOTCMD aptitude $aptopt -f -y dist-upgrade </dev/null-+else- $ROOTCMD apt-get $aptopt -f -y dist-upgrade </dev/null-+fi- # update dpkg info which packages are available- tmp=$($ROOTCMD mktemp)- $ROOTCMD apt-cache dumpavail > $FAI_ROOT/$tmp