Slackware as a Linux rescue environment: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
*Install a Linux distribution (e.g., Debian) on the remote server | *Install a Linux distribution (e.g., Debian) on the remote server | ||
*Put <code>bzImage</code> and <code>initrd.img</code> to /boot/slack/ directory on the remote server | *Put <code>bzImage</code> and <code>initrd.img</code> to /boot/slack/ directory on the remote server | ||
*Overwrite the content of the file <code>/boot/grub/grub.cfg</code> with the following: | *Overwrite the content of the file <code>/boot/grub/grub.cfg</code> with the following, mutatis mutandis: | ||
<pre>set default=0 | <pre>set default=0 | ||
set timeout=0 | set timeout=0 | ||
Revision as of 19:29, 3 October 2015
- Download from one of the Slackware mirrors the kernel and initrd image, which Slackware uses for the installation:
- http://mirrors.slackware.com/slackware/slackware64-14.1/kernels/huge.s/bzImage
- http://mirrors.slackware.com/slackware/slackware64-14.1/isolinux/initrd.img
- Unpack initrd image (as root):
# mkdir dir # cd dir # zcat ../initrd.img | cpio -di
- Chroot to dir and set a root password; exit chroot
- Add to the file
dir/etc/hoststhe ip address of a Slackware mirror that will be used for installation - Pack the modified initrd image:
cd dir; find . | cpio -o -H newc | gzip -9fv > ../initrd.img - Install a Linux distribution (e.g., Debian) on the remote server
- Put
bzImageandinitrd.imgto /boot/slack/ directory on the remote server - Overwrite the content of the file
/boot/grub/grub.cfgwith the following, mutatis mutandis:
set default=0
set timeout=0
set root='mduuid/b8608ac730803da4ddddedeb768a2e24'
menuentry "Slackware 14.1 install" {
linux /slack/bzImage load_ramdisk=1 prompt_ramdisk=0 rw \
printk.time=0 SLACK_KERNEL=huge.s \
kbd=us nic=auto:eth0:static:123.456.78.1:24:123.456.78.254
initrd /slack/initrd.img
}