WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   thinclient image customize (http://www.wcm.at/forum/showthread.php?t=241246)

CM²S 20.01.2011 18:58

thinclient image customize
 
Hello,

Ich hab ein Thinclient image das ich customizen will

hab das DD image gemounted, ok

darin befindet sich ein filesystem.squash

das squashfs hab ich mit mksquashfs bla ... entpackt

gut

cd SQFS

chroot .

meine Änderungen gemacht ...

exit

mksquashfs zurückgeschrieben ok, gleich gross wie das alte
dann hab ich das squashfs in das gemountetet DD File kopiert

soweit so schlecht

kann ich jetz einfach das gemountete DD File unmounten

oder muss ich ein neues DD generieren?

Ich frage deswegen , da das neue DD File um 100 mb grösser ist als das Alte, es ist aber nichts hinzugefügt worden

demnach mag der fehler bei Schreiben des DD Files passieren

hmm ?? Hilfe ist da jemand ??

cu
CM²S

Don Manuel 20.01.2011 20:03

Du kannst nicht in ein gemountetes iso schreiben. Das musst Du schon neu erstellen, z.B. mit mkisofs.

colossus 21.01.2011 11:23

Der Linux-ISO9660-Treiber unterstuetzt nur lesenden Zugriff. Mit GNU xorriso (http://scdbackup.sourceforge.net/xorriso_eng.html) kann man ISO-Images allerdings relativ komfortabel bearbeiten, ohne sie gleich ganz remastern zu muessen.

Don Manuel 21.01.2011 11:40

Ich bin der Meinung, wenn man am sqashfs rumfummelt, sollte man die Syntax von mkisofs schon auch behirnen. Ein sauberes neues ISO ist im Handumdrehen erstellt, vorausgesetzt, man ruft mkisofs richtig auf. Das ist auch schon in Minidistros meistens dabei.

Als kleine Unterstützung, abseits von wärmsten Empfehlungen für --help ;) hier meine bash-Zeile für OmniBoot, sowohl eine Version für grub4dos als auch für Syslinux dabei, wobei letzteres zu 99% im obigen ISO arbeitet (zu 100% wenn es das "Thinclient" ist, das ich auch kenne):
Code:

#!/bin/bash

# -iso-level 4: Required for Win2K/XP booting to work
# -l: Allow full 31 character ISO9660 filenames
# -p "This should describe the preparer of the CDROM" www
# -volset "Specifies the volset ID."
# -A "This should describe the application that will be on the disc.Programm ID"
# -D: Disable deep directory relocation
# -J -joliet-long: Joliet extension allows Windows long filenames up to 103 Unicode chars
# -P "This should describe the publisher of the CDROM"
# -R: Rock Ridge Interchange Protocol allows Unix long filenames up to 255 bytes
# -V "Specifies the volume ID (volume name or label)"

mkisofs -v -iso-level 4 -l -R -J -joliet-long \
    -no-emul-boot -boot-load-size 4 -boot-info-table -p "the right mood ;-)" -D -sysid "Community" \
    -V "OmniBoot_02" -P "Don Manuel" -volset "2010-02-28" -A "Multi-Boot & Repair or Work from CD/DVD/USB/NET." \
    -b "boot/isolinux/isolinux.bin" -hide "boot.catalog" -hide-joliet "boot.catalog" \
    -o "../../../OmniBoot v0.2.iso" "../../../isoroot"

# boot with grub
#    -b "boot/grub/grldr" -hide "boot.catalog" -hide-joliet "boot.catalog"

zu beachten ist Option -b, d.h. ist der Pfad innerhalb des roots der lokalen ISO-Kopie korrekt?

und besonders -o, d.h. der Pfad zum output einerseits und zum lokalen ISO-root zweitens - gesehen relativ vom aktiven Verzeichnis, aus dem heraus der Aufruf des gesamten Befehls erfolgt.


Alle Zeitangaben in WEZ +2. Es ist jetzt 16:21 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag