Hello Juanjo, hello everybody,

I have some ideas to make unattended architecture simpler so that
unattended could be easier improved in future. Idea is to separate
completely boot disk and installation scripts. That would allow to use
installation scripts on any Linux distribution just like an application.

I've made some tests and and found such kind of separation possible.
What has been done. I make some dirty modifications to scripts in order to
run it from Ubuntu LiveCD and it works! I was not clear job and was done
only to see if was possible.

Configuration:
Installer: nt5x-install
Server name: ntinstall.company.lan mounts with user "guest"
Network path: \\ntinstall.company.lan\install
Boot CD: Ubuntu 12.04 Desktop (LiveCD)

Steps to reproduce (patch files are attached):
*********************************************************************
# Set variables
Z_PATH=//ntinstall.company.lan/install
Z_PATH=${Z_PATH//\//\\}
export Z_PATH
export Z_USER=guest
export Z_PASS=guest

# Create dirs
mkdir /z
mkdir /c

# Create some symlinks
ln -s /usr/bin/lspci /sbin/lspci
ln -s /dev/sda /dev/dsk
ln -s /dev/sda1 /dev/dsk1

# Mount network directory
mount.cifs "$Z_PATH" /z

# Download boot sector binaries and necessary scripts
wget -O /usr/lib/freedos-mbr.bin
http://unattended.svn.sourceforge.net/viewvc/unattended/trunk/linuxboot/misc/freedos-mbr.bin
wget -O /usr/lib/unatt-functions.sh
http://unattended.svn.sourceforge.net/viewvc/unattended/trunk/linuxboot/misc/unatt-functions.sh
wget -O /usr/bin/nt5x-install
http://unattended.svn.sourceforge.net/viewvc/unattended/trunk/linuxboot/misc/nt5x-install;
chmod +x /usr/bin/nt5x-install
mkdir /usr/lib/ntldrbin
wget -O /usr/lib/ntldrbin/ntldr_boot_code_install
http://unattended.svn.sourceforge.net/viewvc/unattended/trunk/linuxboot/misc/ntldrbin/ntldr_boot_code_install
wget -O /usr/lib/ntldrbin/ntldr_boot_code_sektor0
http://unattended.svn.sourceforge.net/viewvc/unattended/trunk/linuxboot/misc/ntldrbin/ntldr_boot_code_sektor0
wget -O /usr/lib/ntldrbin/ntldr_boot_code_sektor12
http://unattended.svn.sourceforge.net/viewvc/unattended/trunk/linuxboot/misc/ntldrbin/ntldr_boot_code_sektor12

# Modify install.pl and master
cp /z/dosbin/install.pl /tmp
patch -i /tmp/install.pl.patch /tmp/install.pl
wget -O /tmp/master
http://unattended.svn.sourceforge.net/viewvc/unattended/trunk/linuxboot/misc/master
patch -i /tmp/master.patch /tmp/master; chmod +x /tmp/master

# Run master
chmod +x /tmp/master
/tmp/master
*********************************************************************

What about creation a new branch for this job?

Best Regards,
Stanislav

Attachment: master.patch
Description: Binary data

Attachment: install.pl.patch
Description: Binary data

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to