Removing any functions that we now call by default when we source chroot-functions...
[catalyst.git] / targets / support / pre-kmerge.sh
1 #!/bin/bash
2
3 . /tmp/chroot-functions.sh
4
5 case ${clst_target} in
6         livecd*|stage4)
7                 run_emerge --oneshot genkernel
8                 install -d /tmp/kerncache
9
10                 # Setup case structure for livecd_type
11                 case ${clst_livecd_type} in
12                         gentoo-release-minimal | gentoo-release-universal)
13                                 case ${clst_hostarch} in
14                                         amd64|x86)
15                                                 sed -i 's/initramfs_data.cpio.gz /initramfs_data.cpio.gz -r 1024x768 /' /usr/share/genkernel/genkernel
16                                         ;;
17                                 esac
18                         ;;
19                 esac
20         ;;
21
22
23         netboot2)
24                 run_emerge --oneshot genkernel
25                 install -d /tmp/kerncache
26
27                 # Set the netboot builddate/hostname in linuxrc and copy to proper arch
28                 # directory in genkernel
29                 sed -e "s/@@MYDATE@@/$(date '+%Y%m%d')/g" \
30                     -e "s/@@RELVER@@/${clst_version_stamp}/g" \
31                         /usr/share/genkernel/netboot/linuxrc.x \
32                         > /usr/share/genkernel/${clst_hostarch}/linuxrc
33
34                 echo ">>> Copying support files to ${clst_root_path} ..."
35                 cp -pPRf /usr/share/genkernel/netboot/misc/* \
36                         ${clst_merge_path}
37
38                 echo ">>> Copying busybox config ..."
39                 cp -f /tmp/busy-config \
40                         /usr/share/genkernel/${clst_hostarch}/busy-config
41         ;;
42 esac