Changeset 591
- Timestamp:
- 02/05/10 19:55:47 (2 years ago)
- Location:
- main/linuxmuster-linbo/branches/testing
- Files:
-
- 9 edited
-
conf/initramfs.conf (modified) (1 diff)
-
debian/changelog (modified) (1 diff)
-
debian/linbo-multicast (modified) (1 diff)
-
debian/md5sums.src (modified) (1 diff)
-
debian/postinst (modified) (3 diffs)
-
debian/rules (modified) (3 diffs)
-
linbo/linbo_cmd.sh (modified) (1 diff)
-
linbo/linbo_wrapper.sh (modified) (1 diff)
-
share/make-linbo-media.sh (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
main/linuxmuster-linbo/branches/testing/conf/initramfs.conf
r585 r591 112 112 # ntfs-3g 113 113 file /bin/ntfs-3g ../../src/ntfs-3g/src/.libs/ntfs-3g 755 0 0 114 file /lib/libntfs-3g.so. 4917 ../../src/ntfs-3g/libntfs-3g/.libs/libntfs-3g.so.4917755 0 0114 file /lib/libntfs-3g.so.73 ../../src/ntfs-3g/libntfs-3g/.libs/libntfs-3g.so.73.0.0 755 0 0 115 115 # ntfs-3g 1.2920 MUST have this. 116 116 slink /etc/mtab /proc/mounts 755 0 0 -
main/linuxmuster-linbo/branches/testing/debian/changelog
r585 r591 1 linuxmuster-linbo (1.99.16-0) unstable; urgency=low 2 3 * package 4 - linbo-multicast init script, added lsb header. 5 * linbofs 6 - rsync: new upstream version 3.0.7. 7 - linbo_cmd.sh: 8 o mk_cloop(): uses specific rsync options due to fstype (ntfs, vfat, other). 9 - linbo_wrapper: changed shutdown command from poweroff to halt. 10 - ntfs-3g: new upstream version 2010.1.16. 11 * kernel: new version 2.6.32.7. 12 * server side scripting 13 - syslinux: recompiled on lenny. 14 - make-linbo-media.sh: 15 o new option -n: no strict checking for linbo ssh server, allows password based 16 logins, needs -p for root pw, optional. 17 o new option -p <password>: sets local linbo admin password, is also used for 18 root ssh login if password logins are allowed with -n, optional. 19 o new option -r: remove server root's public ssh key. 20 o improved LINBO parameter grepping from group's pxe configfile. 21 22 -- Thomas Schmitt <schmitt@lmz-bw.de> Fri, 5 Feb 2010 13:16:23 +0100 23 24 linuxmuster-linbo (1.99.15-2) unstable; urgency=low 25 26 * package, postinst: creating bittorrent init scripts if necessary. 27 28 -- Thomas Schmitt <schmitt@lmz-bw.de> Wed, 3 Feb 2010 13:25:56 +0100 29 30 linuxmuster-linbo (1.99.15-1) unstable; urgency=low 31 32 * package, postinst: added one more "\n" to ssh key gen commands to avoid password query. 33 34 -- Thomas Schmitt <schmitt@lmz-bw.de> Mon, 1 Feb 2010 15:21:25 +0100 35 1 36 linuxmuster-linbo (1.99.15-0) unstable; urgency=low 2 37 -
main/linuxmuster-linbo/branches/testing/debian/linbo-multicast
r329 r591 1 1 #!/bin/bash 2 3 ### BEGIN INIT INFO 4 # Provides: linbo-multicast 5 # Required-Start: $network $local_fs 6 # Required-Stop: $network $local_fs 7 # Should-Start: 8 # Should-Stop: 9 # Default-Start: 2 3 4 5 10 # Default-Stop: 0 1 6 11 # Short-Description: Start linbo multicast server 12 # Description: Start linbo multicast server 13 ### END INIT INFO 14 2 15 # Author: Thomas Schmitt <schmitt@lmz-bw.de> 3 # License: GPL V 216 # License: GPL V3 4 17 # 5 # /etc/init.d/starting linbo multicast server6 18 7 19 # defaults -
main/linuxmuster-linbo/branches/testing/debian/md5sums.src
r585 r591 5 5 e9a5936688e97075901f099b1749dc80 grub4dos-0.4.4-2009-10-16-src.zip 6 6 67c1a396fdf67b984dad939a59a01571 kexec-tools-2.0.1.tar.bz2 7 471e0fe07e27796f041ecb990302ccc4 linux-2.6.32.4.tar.bz27 d59aca06609cedabe4d6d161d9f11113 linux-2.6.32.7.tar.bz2 8 8 6fad0a69ac89440ad4f696dbbbf11497 ms-sys-2.1.3.tgz 9 d1f9bf1df93ac9eec0e6dab133f0fe99 ntfs-3g-2009.4.4AR.17.tgz9 e104c914e8d7d29ee83e63d46afbba25 ntfs-3g-2010.1.16.tgz 10 10 083903f34a0c345a05931b43fe4aa7f0 qt-embedded-linux-opensource-src-4.5.2.tar.gz 11 e9865d093a18e4668b9d31b635dc8e99 rsync-3.0.6.tar.gz11 b53525900817cf1ba7ad3a516ab5bfe9 rsync-3.0.7.tar.gz 12 12 257ac04e62ab7e3616e220333a1140cb ssmtp_2.62.orig.tar.gz 13 55e3eb8fd1395d59b6da0b53839c865bsyslinux-3.82.tar.bz213 78f2f111e052f1553e8530df8d72d027 syslinux-3.82.tar.bz2 -
main/linuxmuster-linbo/branches/testing/debian/postinst
r585 r591 102 102 fi 103 103 104 if [ -e /etc/default/bittorrent ]; then 105 # add bittorrent user if not present 106 if ! id bittorrent &> /dev/null; then 107 useradd -c "BitTorrent User" -d /var/lib/bittorrent -g nogroup -r bittorrent 108 dpkg-statoverride --add bittorrent nogroup 755 /var/lib/bittorrent 109 dpkg-statoverride --add bittorrent nogroup 755 /var/log/bittorrent 110 fi 111 chown bittorrent:nogroup /var/lib/bittorrent -R 112 chown bittorrent:nogroup /var/log/bittorrent -R 113 # setting needed options in /etc/default/bittorrent 104 # add bittorrent user if not present 105 if ! id bittorrent &> /dev/null; then 106 useradd -c "BitTorrent User" -d /var/lib/bittorrent -g nogroup -r bittorrent 107 dpkg-statoverride --add bittorrent nogroup 755 /var/lib/bittorrent 108 dpkg-statoverride --add bittorrent nogroup 755 /var/log/bittorrent 109 fi 110 chown bittorrent:nogroup /var/lib/bittorrent -R 111 chown bittorrent:nogroup /var/log/bittorrent -R 112 113 # provide a bittorrent default file if necessary 114 if [ ! -s /etc/default/bittorrent -a -s /usr/share/doc/bittorrent/examples/bittorrent.default ]; then 115 cp /usr/share/doc/bittorrent/examples/bittorrent.default /etc/default/bittorrent 116 fi 117 118 # provide a bittorrent init script if necessary 119 if [ ! -s /etc/init.d/bittorrent -a -s /usr/share/doc/bittorrent/examples/bittorrent.init ]; then 120 cp /usr/share/doc/bittorrent/examples/bittorrent.init /etc/init.d/bittorrent 121 chmod 755 /etc/init.d/bittorrent 122 update-rc.d bittorrent defaults 123 fi 124 125 # setting needed options in /etc/default/bittorrent 126 if [ -s /etc/default/bittorrent ]; then 114 127 if ! grep -q ^REANNOUNCE_INTERVAL /etc/default/bittorrent; then 115 128 echo "Adding REANNOUNCE_INTERVAL=15 to /etc/default/bittorrent." … … 149 162 sed -e 's|/var/log/linuxmuster/linbo/|/var/log/bittorrent/|' /etc/logrotate.d/linuxmuster-linbo > /etc/logrotate.d/bittorrent 150 163 fi 151 fi 164 fi # /etc/default/bittorrent 152 165 153 166 # change owner of logdir to nobody … … 157 170 # create dropbear ssh keys 158 171 if [ ! -s "$SYSCONFDIR/linbo/ssh_host_rsa_key" ]; then 159 echo -e "$SYSCONFDIR/linbo/ssh_host_rsa_key\n\n\n " | ssh-keygen -t rsa172 echo -e "$SYSCONFDIR/linbo/ssh_host_rsa_key\n\n\n\n\n" | ssh-keygen -t rsa 160 173 /usr/lib/dropbear/dropbearconvert openssh dropbear $SYSCONFDIR/linbo/ssh_host_rsa_key $SYSCONFDIR/linbo/dropbear_rsa_host_key 161 174 fi 162 175 if [ ! -s "$SYSCONFDIR/linbo/ssh_host_dsa_key" ]; then 163 echo -e "$SYSCONFDIR/linbo/ssh_host_dsa_key\n\n\n " | ssh-keygen -t dsa176 echo -e "$SYSCONFDIR/linbo/ssh_host_dsa_key\n\n\n\n\n" | ssh-keygen -t dsa 164 177 /usr/lib/dropbear/dropbearconvert openssh dropbear $SYSCONFDIR/linbo/ssh_host_dsa_key $SYSCONFDIR/linbo/dropbear_dss_host_key 165 178 fi -
main/linuxmuster-linbo/branches/testing/debian/rules
r585 r591 61 61 NTFS3G_ARCHIVE=$(shell grep ntfs-3g- debian/md5sums.src | awk '{ print $$2 }') 62 62 NTFS3G_DIR=src/$(shell echo $(NTFS3G_ARCHIVE) | sed -e 's/.tgz//') 63 #NTFS3G_URL=http://www.ntfs-3g.org 64 NTFS3G_URL=$(LML_URL) 63 NTFS3G_URL=http://tuxera.com/opensource 65 64 66 65 # ntfsprogs … … 290 289 -@if [ ! -e $(NTFS3G_DIR)/src/.libs/ntfs-3g ]; then \ 291 290 echo "[1mBuilding ntfs-3g...[0m" ; \ 292 ( cd $(NTFS3G_DIR) && ./configure --enable-static --enable-posix-acls && make && strip src/.libs/ secaudit && strip src/.libs/ntfs-3g && strip libntfs-3g/.libs/libntfs-3g.so.4917.0.0 ); \291 ( cd $(NTFS3G_DIR) && ./configure --enable-static --enable-posix-acls && make && strip src/.libs/ntfs-3g.secaudit && strip src/.libs/ntfs-3g && strip libntfs-3g/.libs/libntfs-3g.so.73.0.0 ); \ 293 292 fi 294 293 … … 305 304 fi 306 305 307 # syslinux (already built on etch)306 # syslinux (already built on lenny) 308 307 # -@if [ ! -e $(SYSLINUX_DIR)/gpxe/src/bin/gpxe.lkrn ]; then \ 309 308 # echo "[1mBuilding syslinux...[0m" ; \ -
main/linuxmuster-linbo/branches/testing/linbo/linbo_cmd.sh
r585 r591 768 768 echo "Starte Kompression von $2 -> $3 (differentiell)." | tee -a /tmp/image.log 769 769 mkexclude 770 # rsync mit acl und xattr Optionen 771 local ROPTS="-HazAX" 772 #local ROPTS="-az" 773 [ "$(fstype "$2")" = "vfat" ] && ROPTS="-rtz" 774 # tschmitt: logging 775 #rm -f "$TMP" 776 #interruptible rsync "$ROPTS" --exclude="/.linbo" --exclude-from="/tmp/rsync.exclude" --delete --delete-excluded --partial --only-write-batch="$3" /mnt/ /cloop 777 #interruptible rsync "$ROPTS" --fake-super --exclude="/.linbo" --exclude-from="/tmp/rsync.exclude" --delete --delete-excluded --partial --log-file=/tmp/image.log --log-file-format="" --only-write-batch="$3" /mnt/ /cloop 2>&1 >>/tmp/image.log 770 # determine rsync opts due to fstype 771 local type="$(fstype "$2")" 772 case $type in 773 ntfs) ROPTS="-HazAX" ;; 774 vfat) ROPTS="-rtz" ;; 775 *) ROPTS="-az" ;; 776 esac 778 777 interruptible rsync "$ROPTS" --exclude="/.linbo" --exclude-from="/tmp/rsync.exclude" --delete --delete-excluded --log-file=/tmp/image.log --log-file-format="" --only-write-batch="$3" /mnt/ /cloop 2>&1 >>/tmp/image.log 779 778 RC="$?" -
main/linuxmuster-linbo/branches/testing/linbo/linbo_wrapper.sh
r585 r591 438 438 reboot) /sbin/reboot ;; 439 439 440 halt|poweroff) /sbin/ poweroff;;440 halt|poweroff) /sbin/halt ;; 441 441 442 442 esac -
main/linuxmuster-linbo/branches/testing/share/make-linbo-media.sh
r585 r591 24 24 echo " -b create debug menu entries" 25 25 echo " -c create cdrom media, has to be used with -d or -i" 26 echo " -d <device> writes directly to device (optional), cann be used with -c or -u" 27 echo " -g <group1,group2,...> list of hostgroups to build for (optional, default: default)" 26 echo " -d <device> writes directly to device (optional), can be used" 27 echo " with -c or -u" 28 echo " -g <group1,group2,...> list of hostgroups to build for, optional," 29 echo " if -g is not given, default group is used." 28 30 echo " -i <output dir> creates cdrom iso in output dir" 31 echo " -n no strict checking for linbo ssh server, allows" 32 echo " password based logins, needs -p for root pw, optional" 33 echo " -p <password> sets local linbo admin password, is also used for" 34 echo " root ssh login if password logins are allowed, optional" 35 echo " -r remove server root's public ssh key" 29 36 echo " -u create usb media, has to be used with -d or -z" 30 echo " -z <output dir> creates zip archive with usb boot media files in output dir" 37 echo " -z <output dir> creates zip archive with usb boot media files in" 38 echo " output dir" 31 39 echo 32 40 echo " Examples:" 33 41 echo 34 42 echo " `basename $0` -c -i /home/administrators/administrator" 35 echo " writes a cdrom iso image for default group to administrator's home"43 echo " writes a cdrom iso image for default group to administrator's home" 36 44 echo 37 45 echo " `basename $0` -c -i /var/linbo -g room123" 38 echo " writes a cdrom iso image for computer group room123 to /var/linbo"46 echo " writes a cdrom iso image for computer group room123 to /var/linbo" 39 47 echo 40 48 echo " `basename $0` -c -d /dev/cdrom" 41 echo " burns a cdrom directly to device /dev/cdrom"49 echo " burns a cdrom directly to device /dev/cdrom" 42 50 echo 43 51 echo " `basename $0` -u -g room123,default -d /dev/sdc" 44 echo " writes a bootable usb media to /dev/sdc for groups room123 and default"52 echo " writes a bootable usb media to /dev/sdc for groups room123 and default" 45 53 echo 46 54 echo " `basename $0` -u -z /home/teachers/zell" 47 echo " writes a zip archive with usb boot media files for default group to teacher zell's home" 55 echo " writes a zip archive with usb boot media files for default group to" 56 echo " teacher zell's home" 48 57 exit 1 49 58 } … … 51 60 52 61 # process cmdline 53 while getopts ":bcd:g:hi: uz:" opt; do62 while getopts ":bcd:g:hi:np:ruz:" opt; do 54 63 case $opt in 55 64 b) DEBUG=yes ;; … … 71 80 OUTDIR=$OPTARG 72 81 [ -z "$OPTARG" ] && OUTDIR=`pwd` ;; 82 n) NOSTRICT=yes ;; 83 p) PASSWORD=$OPTARG ;; 84 r) REMKEY=yes ;; 73 85 u) USB=yes 74 86 [ -n "$CDROM" ] && usage … … 89 101 [ -z "$CDROM" -a -z "$USB" ] && usage 90 102 [ -z "$DEVICE" -a -z "$ISO" -a -z "$ZIP" ] && usage 103 [ -n "$NOSTRICT" -a -z "$PASSWORD" ] && usage 91 104 if [ -n "$ZIP" -o -n "$ISO" ]; then 92 105 if [ ! -d "$OUTDIR" ]; then … … 146 159 LINBOFS=linbofs.gz 147 160 161 # determine linbo append params from group's pxe configfile 162 get_append_line() { 163 append_linbo="" 164 append_debug="" 165 local params="" 166 local line="" 167 local opt="" 168 local val="" 169 local j="" 170 local found=false 171 local cfg=$LINBODIR/pxelinux.cfg/$i 172 if [ -e "$cfg" ]; then 173 while read line; do 174 opt="$(echo $line | tr A-Z a-z | awk '{ print $1 }')" 175 val="$(echo $line | tr A-Z a-z | awk '{ print $2 }')" 176 [ "$opt" = "kernel" -a "$val" = "linbo" ] && found=true 177 if [ "$found" = "true" -a "$opt" = "append" ]; then 178 for j in $line; do 179 case $j in 180 [Aa][Pp][Pp][Ee][Nn][Dd]|[Ii][Nn][Ii][Tt][Rr][Dd]*|[Qq][Uu][Ii][Ee][Tt]|[Dd][Ee][Bb][Uu][Gg]) ;; 181 *) if [ -z "$params" ]; then params="$j"; else params="$params $j"; fi ;; 182 esac 183 done 184 break 185 fi 186 done <$cfg 187 fi 188 [ "$found" = "false" ] && echo "Warning: KERNEL linbo not found in pxe config for group $i, using default values." 189 if [ -z "$params" ]; then 190 params="vga=788" 191 [ "$found" = "true" ] && echo "Warning: No LINBO parameters found in pxe config for group $i, using default values." 192 fi 193 append_linbo="APPEND initrd=/$i/linbofs.gz $params quiet" 194 append_debug="APPEND initrd=/$i/linbofs.gz $params debug" 195 echo "LINBO parameters for $i: $params" 196 } 197 148 198 # write sys/isolinux config file 149 199 writecfg() { … … 154 204 local sysdir=/$2 155 205 fi 156 local append1157 local append2158 206 local RC=1 159 echo "DEFAULT $sysdir/vesamenu.c32207 echo "DEFAULT $sysdir/vesamenu.c32 160 208 KBDMAP $sysdir/german.kbd 161 209 PROMPT 0 … … 172 220 for i in $GRPS_CHECKED; do 173 221 174 append1=`grep ^APPEND $LINBODIR/pxelinux.cfg/$i | grep linbofs.gz | grep -vw debug | tail -1 | sed -e "s|linbofs.gz|/linbofs.$i.gz|"` 175 append2=`grep ^APPEND $LINBODIR/pxelinux.cfg/$i | grep linbofs.gz | grep -w debug | tail -1 | sed -e "s|linbofs.gz|/linbofs.$i.gz|"` 222 get_append_line 176 223 177 224 echo "LABEL menu$m 178 225 MENU LABEL ^$m. LINBO: $i 179 226 KERNEL /linbo 180 $append 1227 $append_linbo 181 228 " >> $outfile 182 229 … … 185 232 MENU LABEL ^$(($m +1)). LINBO: $i (debug) 186 233 KERNEL /linbo 187 $append 2234 $append_debug 188 235 " >> $outfile 189 236 m=$(($m +1)) … … 215 262 cd $TMPDIR 216 263 zcat $LINBODIR/$LINBOFS | cpio -i -d -H newc --no-absolute-filenames &> /dev/null || exit 1 264 # change passwords 265 if [ -n "$PASSWORD" ]; then 266 # root password 267 echo "/bin/echo root:$PASSWORD | /usr/sbin/chpasswd" > passwd.sh 268 chroot $TMPDIR /bin/sh /passwd.sh 269 rm passwd.sh 270 # md5sum of linbo password 271 local linbo_md5passwd=`echo -n $PASSWORD | md5sum | awk '{ print $1 }'` 272 echo -n "$linbo_md5passwd" > etc/linbo_passwd 273 echo "Local password for LINBO admin changed" 274 fi 275 # change dropbear options 276 if [ "$NOSTRICT" = "yes" ]; then 277 echo "Allowing password based ssh logins." 278 sed -e 's|^/sbin/dropbear .*|/sbin/dropbear -E -p 2222|' -i init.sh 279 fi 280 # remove server root's public ssh key 281 if [ "$REMKEY" = "yes" ]; then 282 echo "Removing authorized_keys." 283 rm -f .ssh/authorized_keys 284 fi 217 285 for g in $GRPS_CHECKED; do 218 286 echo -n "Creating linbofs.gz for group $g ... " … … 223 291 fi 224 292 # pack linbofs.gz 225 find . | cpio --quiet -o -H newc | gzip -9c > $MNTPNT/linbofs.$g.gz ; RC="$?" || exit 1 293 mkdir -p $MNTPNT/$g 294 find . | cpio --quiet -o -H newc | gzip -9c > $MNTPNT/$g/linbofs.gz ; RC="$?" || exit 1 226 295 echo "Ok!" 227 296 done
Note: See TracChangeset
for help on using the changeset viewer.
