summaryrefslogtreecommitdiffstats
path: root/installer/ld4-inst
diff options
context:
space:
mode:
authorDirk von Suchodoletz2006-03-31 19:07:26 +0200
committerDirk von Suchodoletz2006-03-31 19:07:26 +0200
commita989d7d0261a9f8dc8656af64b1e7af553bc2591 (patch)
tree48ae55f3f1d5bee4ba4f087e1b5d5d79d27e675a /installer/ld4-inst
parenthalt, reboot in runlevel 0 and 6 ... (diff)
downloadcore-a989d7d0261a9f8dc8656af64b1e7af553bc2591.tar.gz
core-a989d7d0261a9f8dc8656af64b1e7af553bc2591.tar.xz
core-a989d7d0261a9f8dc8656af64b1e7af553bc2591.zip
extensions within the installer for mksquashfs, integration of cowloop
(special network block device module) git-svn-id: http://svn.openslx.org/svn/openslx/ld4@136 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer/ld4-inst')
-rwxr-xr-xinstaller/ld4-inst35
1 files changed, 30 insertions, 5 deletions
diff --git a/installer/ld4-inst b/installer/ld4-inst
index 9bb4c6c3..0a354501 100755
--- a/installer/ld4-inst
+++ b/installer/ld4-inst
@@ -173,7 +173,7 @@ configure() {
ask "Path for client system: " rootdir $rootdir
ask "Path for tftpboot: " tftpbootdir $tftpbootdir
- ask "Which network do you want to use for DXS? (A.B.C.0) " netname $netname
+ ask "Which network do you want to use for DXS? (A.B.C.0): " netname $netname
ask "Which netmask should be used? (255.B.C.0): " netmask $netmask
ask "What is your servers IP for NFS, DHCP and TFTP? " server $server
# noetig??
@@ -198,7 +198,9 @@ configure() {
# list available kernels and allow to chose from
# nfs / nbd / squash-fs?
-
+ ask "Would you like to use NBD? (y/N): " nbdyes $nbdyes
+ ask "Which kind of NBD export (ext2/squashfs)?: " nbdfs $nbdfs
+
# password for pxeboot-menu (caution: you can easily retrieve it in clear
# text!!)
@@ -207,14 +209,37 @@ configure() {
copy_system() {
+ # allow generic (identical over different versions) or specific exclude
+ # files
+ if [ -e distro-specs/exclude-${client_distro}-${client_distro_ver} ] ; then
+ local excludefile="distro-specs/exclude-${client_distro}-${client_distro_ver}"
+ else
+ local excludefile="distro-specs/exclude-${client_distro}"
+ fi
+ echo $excludefile
echo -e "\n\nSyncing system now\nPlease enter root password of client machine\n"
rsync -avDe ssh --delete --exclude-from=distro-specs/exclude-common \
- --exclude-from=distro-specs/exclude-${client_distro}-${client_distro_ver} \
- ${rsyncsource} ${rootdir} || { echo "Rsync failed" ; exit 1 ; }
+ --exclude-from=${excludefile} ${rsyncsource} ${rootdir} || \
+ { echo "Rsync failed" ; exit 1 ; }
# generate error message in case rsync didn't work and exit.
- # TODO: mksquashfs (background process)
+}
+
+create_nbd() {
+ if [ "$nbdyes" = "yes" -o "$nbdyes" = "y" -o "$nbdyes" = "Y" ] ; then
+ # TODO: mksquashfs (background process)
+ if [ "$nbdfs" = "squashfs" ] ; then
+ echo -e "\nGenerating "
+ if `which mksquashfs` ; then
+ mksquashfs ${rootdir} ${rootdir}.squashfs &
+ else
+ echo -e "Tool 'mksquashfs' not found, skipping"
+ fi
+ else
+ echo -e "\nGenerating "
+ fi
+ fi
}
create_initrd() {