Script to install slackware to a directory.
I thought I would ask before I write one. But is there a script in the initrd that will install slackware to a directory? I have a situation where I want to install to a mounted directory instead of a partition. This is useful for building up a slackware machine for a virtual environment or iscsi.
Basically I want to point it to a install dir and a tagfiles dir and have it install all of the packages. I'll deal with config after. schu |
setup assumes that destination is /mnt. Try to 'mount --bind' right directory to and go the usual way...
|
Quote:
schu |
1 Attachment(s)
Well, to list the available Linux partitions to serve as targets the 'setup' script runs the 'probe' script:
Code:
if probe -l 2> /dev/null | egrep 'Linux$' 1> /dev/null 2> /dev/null ; then So I suppose that to do what you want you would need to modify the installer itself. Good luck. But maybe I am wrong and somebody will propose you an easier way ? I append /sbin/probe found in the installer for Slackware-almost14 though that be probably useless. PS maybe it's possible to set up an initrd including the whole tree of a complete Slackware installation, then cp it in a directory. But that would need a lot of RAM and it's probably simpler to use rsync to mirror an existing Slackware installation into your target directory then. But what about /dev in that case? |
So after hacking around in the setup script for a while, it was just easier to write my own. This is really useful if you want to install slackware to an iscsi target that you mount in initrd, or in my case, setup slackware 14.0 on linode using the emergency boot option. I made a file system on /dev/xvdb, mounted it in the boot disk, rsync'd the slackware install files, then called my script. Once everything was installed, I simply used a linode kernel and kicked the machine.
Here is the script: Code:
#!/bin/sh |
All times are GMT -5. The time now is 04:39 PM. |