Hi,
> Now i solved it (with the message from this thread, but can't find this thread
> anymore)...
> It is a bit of a workaround but he! it is working... and save me a lot of
> time:
>
> First you have to edit your master.pl
>
> ------------------------------------------------
> --- master.org 2006-06-10 12:45:21.828736942 +0200
> +++ master 2006-06-10 12:47:04.144845228 +0200
> @@ -399,9 +399,15 @@
> cp /etc/dosemu/dosemu.conf /tmp
> echo \$_hdimage = \"/dev/dsk$active_part\" >> /tmp/dosemu.conf
>
> +[ -f /z/site/preinst.sh ] \
> + && . /z/site/preinst.sh
> +
> # DOSEMU always exits non-zero. FIXME.
> dosemu.bin -f /tmp/dosemu.conf
>
> +[ -f /z/site/postinst.sh ] \
> + && . /z/site/postinst.sh
> +
> sync
> reboot
> ------------------------------------------------
>
> And then create a postinst.sh script inside the site folder:
>
> ----postinst.sh----
> #FOR "NORMAL" USE if you have 255 HEADs but you don't have to use this because
> the linuxbootdisk
> #is working for "NORMAL" PCs
> #echo -e -n "\xff" |dd of=/dev/sda1 bs=1 seek=26 conv=notrunc
> #mkdir -p /mnt/drive
> #mount -t msdos /dev/dsk1 /mnt/drive
> #echo -e -n "\xff" |dd of=/mnt/drive/\$win_nt\$.~bt/bootsect.dat bs=1 seek=26
> conv=notrunc
>
> #FOR IBM R52 AND R51
> echo -e -n "\xf0" |dd of=/dev/sda1 bs=1 seek=26 conv=notrunc
> mkdir -p /mnt/drive
> mount -t msdos /dev/dsk1 /mnt/drive
> echo -e -n "\xf0" |dd of=/mnt/drive/\$win_nt\$.~bt/bootsect.dat bs=1 seek=26
> conv=notrunc
> sleep 30
> -------------------
That's great. Hope this helps others, too.
>
> Run unattended and have fun...
>
> I use unattended with a mysql database - so if i ever have more time, i will
> do
> a mysql based of the postinst.sh script. For now i manuel edit this file...
If I correctly remember there's a way to use unattended.txt files
according to the mac address as (mac-address-here).txt. Perhaps this
could be a way here, too, if somebody knows if there is (or we can get
somewhere from) an environment variable with the mac address to use it
during postinst.sh.
Or put in /etc/master something like
val=$(get_cmdline_param z_special)
[ -n "$val" ] && Z_SPECIAL=${val#*=}
(around line 180 there same is done for Z_PATH etc.).
Then, in postinst.sh you can have:
if [ -n $Z_SPECIAL ] ; then
# FOR IBM ...
else
# FOR NORMAL PC ...
fi
So, if you specify e.g. "z_special=1" on the linuxboot command line,
your script gets executed.
>
> To solve the problem the "right" way, i though a bartpe or a complete new
> linux
> bootdisk would be a good way. Also we have to find a way to add "Windows Vista
> Support".
I think I've read that Brad Erdman is working on a solution to install
Vista with Bart's PE.
Falko
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
unattended-info mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unattended-info