Hi wer auch immer den feature-request hatte, WARNING: hier endet der support. you have been warned...
Am 14.06.2016 um 10:04 schrieb T. Küchel: > Hallo Holger, > > Am 14.06.2016 um 09:44 schrieb Holger Baumhof: >> Hallo Tobias, >> >>> Wenn du das postsync NICHT haben wolltest, müsstest du es vor dem start >>> einfach umbenennen, dass es weg wäre. Aber eine Option für linbo-remote >>> wäre dafür auch schick... >> >> nein, er will postsync ohne sync, weil der sync zu lange dauert. >> Den postsync braucht er, weil er einmal im Monat so den >> aktivierungszweig der Registry abschneidet, damit Windows weiterhin >> meint, es sei in der OouOfTheBoxGracePeriod. > > ah, verstand ich nicht. > Gut, das könnte ich jetzt nämlich auch gebrauchen: > Die Laptops ohne SSD brauchen 6,5 min. Sync-zeit. > Das postsync ohne sync wäre natürlich fein. > > Am "einfachsten" müsste man initcache so hacken, dass es für diese > Rechner ein postsync-befehl dranhängt, dann würde der postsync > automatisch ausgeführt. Ich habe jetzt linbo so gehackt, dass es bei "start" auch den postsync ausführt. Das macht sicher nicht immer Sinn, aber manchen kann das ja gefallen, also: 0. ich habe eine linuxmuster.net 6.1 und linuxmuster-linbo version 2.2.16-0 und nur dort funktioniert der patch 1. /usr/share/linuxmuster-linbo/update-linbofs.sh patche ich von Hand so: xzcat $LINBODIR/linbofs.lz | cpio -i -d -H newc --no-absolute-filenames &> /dev/null ; RC=$? [ $RC -ne 0 ] && bailout " Failed to unpack linbofs.lz!" # patching linbo_cmd patch -Nr- usr/bin/linbo_cmd < /var/linbo/linbo_cmd.patch # store linbo md5 password [ -n "$linbo_md5passwd" ] && echo -n "$linbo_md5passwd" > etc/linbo_passwd 2. dann lade ich kopiere ich aus dem Anhang die Datei linbo_cmd.patch nach /var/linbo 3. dann muss ich noch update-linbofs als root ausführen. 4. dann füge ich in der *nächsten* Zeile nach dem Baseimage = meinwin7.cloop folgende Zeile ein: PostsyncOnStart = yes 5. dann reboote ich den Client -> Voila. Er synct on start: # linbo_wrapper start:1 command : start parameter : 1 Starting Windows 7 ... /dev/sda5 start 1:�/dev/sda1� 2:�/dev/sda1� 3:�reboot� 4:�� 5:�� 6:�/dev/sda5� Schreibe Reboot-Flag auf /dev/sda1. Filesystem type is NTFS. Success. Maschinenpasswort auf 10.16.1.1 wurde gesetzt. do a postsync anyway ##### POSTSYNC Windows 7 BEGIN ##### Loesche Registry-Zweig WPA ... reged version 0.1 140201, (c) Petter N Hagen Simple registry editor. ? for help. > rdel_keys: Key <WPA> not found > Hives that have changed: # Name None! ##### POSTSYNC Windows 7 END ##### Killing torrents ... Sende Logdatei an 10.16.1.1. Logdatei linbo.log erfolgreich an 10.16.1.1 versandt. Vieel Spass, wer es brauchen kann. Grüße, Tobias
--- linbo_cmd.orig 2016-07-13 11:24:55.359879371 +0200
+++ linbo_cmd 2016-07-13 11:56:45.046030907 +0200
@@ -793,6 +793,17 @@
fi
# cause machine password stuff on server
invoke_macct
+ # do postsync on start, if configured
+ image="$(cat /mnt/.linbo)"
+ postsync="$image.cloop.postsync"
+ local RET=""
+ RET="$(grep -i "baseimage[[:space:]]*=[[:space:]]*${image}.cloop" -A 1 /start.conf | grep -i ^postsynconstart | tail -1 | awk -F= '{ print $2 }' | awk '{ print $1 }' | tr A-Z a-z)"
+ if [ "x$RET" = "xyes" ]; then
+ echo "do a postsync anyway"
+ # source postsync script
+ [ -s "/cache/$postsync" ] && . "/cache/$postsync"
+ sync; sync; sleep 1
+ fi
# kill torrents if any
killalltorrents
# No more timer interrupts (deprecated)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ linuxmuster-user mailing list [email protected] https://mail.lehrerpost.de/mailman/listinfo/linuxmuster-user
