summaryrefslogtreecommitdiff
path: root/helpers/lh_installlinux
blob: 24dd7d1e0e4f1e667d80fdc0924e3a00a94057d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# lh_installinux <type>

# Removing initrd backup files
rm -f "${LIVE_CHROOT}"/boot/initrd*bak*

# Setting destination directory
case "${1}" in
	iso)
		DESTDIR="${LIVE_ROOT}/binary/isolinux"
		;;

	net)
		DESTDIR="${LIVE_ROOT}/tftpboot"
		;;

	usb)
		DESTDIR="${LIVE_ROOT}/binary"
		;;
esac

# Installing linux image
cp "${LIVE_CHROOT}"/boot/vmlinuz* "${DESTDIR}"/vmlinuz
cp "${LIVE_CHROOT}"/boot/initrd.img* "${DESTDIR}"/initrd.gz