archboot/lib/initcpio/install/arch_base

74 lines
3.3 KiB
Text
Raw Normal View History

2007-02-22 23:46:50 +01:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
install ()
{
2009-05-24 15:47:17 +02:00
SCRIPT="arch_base"
BINARIES="init agetty mount modprobe modinfo umount basename du clear env head id md5sum nano nc printf tail tee test tr tty uptime w who wc which whoami xargs yes syslog-ng syslog-ng-ctl loggen pdbtool update-patterndb bash swapon uniq cut seq snarf find sort fdisk sfdisk cfdisk parted gawk cp mv shutdown free ls rm sed test less chgrp chmod chown date df dialog dmesg egrep fgrep grep hostname kill killall killall5 more ps pwd rmdir stty sync tar touch uname vim lsmod modinfo rmmod hdparm true mktemp chroot dirname expr bzip2 hwclock depmod su cat cpio dd gzip wget top sdparm tput ifconfig ln losetup mkdir mkfifo mknod readlink echo gunzip zcat reset swapoff halt telinit awk dir reboot poweroff pidof nc lzcat lzcmp lzdiff lzegrep lzfgrep lzgrep lzless lzma lzmadec lzmore unlzma unxz xz xzcat xzdec switch_root false pivot_root sleep arch ctrlaltdel raw gdisk sgdisk findmnt swaplabel cal chkdupexe chrt col colcrt colrm column cytune ddate fallocate flock getopt hexdump i386 ionice ipcmk ipcrm ipcs isosize line linux32 linux64 look lscpu mcookie namei pg rename renice rev script scriptreplay setarch setsid setterm tailf taskset ul unshare uuidgen whereis write addpart delpart fdformat ldattach partx readprofile rtcwake tunelp uuidd sysctl pgrep pkill pmap pwdx skill slabtop
snice tload vmstat watch"
2009-05-24 15:47:17 +02:00
2007-02-22 23:46:50 +01:00
### setting up base structure
add_dir "/proc"
add_dir "/sys"
add_dir "/dev"
add_dir "/mnt"
add_dir "/media"
2007-02-22 23:46:50 +01:00
add_dir "/tmp"
add_dir "/tmp/install"
2007-02-22 23:46:50 +01:00
add_dir "/var/run"
2010-02-08 06:58:06 +01:00
add_dir "/var/lock"
2007-02-22 23:46:50 +01:00
add_dir "/var/log"
add_dir "/addons"
add_dir "/home"
add_device "/dev/null" c 1 3
add_device "/dev/zero" c 1 5
add_device "/dev/console" c 5 1
2009-12-07 14:55:04 +01:00
add_device "/dev/mem" c 1 1
2007-02-22 23:46:50 +01:00
### adding needed programs from running system
add_file "${CONFIG}" "/config"
2009-05-24 15:47:17 +02:00
2007-02-22 23:46:50 +01:00
add_file "/usr/share/terminfo/l/linux"
2009-05-24 15:47:17 +02:00
add_file "/usr/share/archboot/base/init" "/init"
2009-06-17 13:44:33 +02:00
add_file "/lib/initcpio/init_functions" "/init_functions"
2007-02-22 23:46:50 +01:00
add_file "/etc/rc.d/functions"
add_file "/etc/rc.d/syslog-ng"
2009-05-24 15:47:17 +02:00
2007-02-22 23:46:50 +01:00
### adding config files of installation system
2011-02-04 21:04:11 +01:00
for i in $(find /usr/share/archboot/base/etc/* ! -type d); do
2007-02-22 23:46:50 +01:00
add_file "$i" "/etc/$(basename $i)"
done
2009-05-24 15:47:17 +02:00
2007-02-22 23:46:50 +01:00
### fixing network support
add_file "/lib/libnss_files.so.2"
add_file "/lib/libnss_dns.so.2"
2009-05-24 15:47:17 +02:00
### add copy-mountpoint.sh
add_file "/usr/bin/copy-mountpoint.sh"
2009-05-24 15:47:17 +02:00
2010-12-11 18:50:16 +01:00
### fix syslog-ng
for i in /usr/lib/syslog-ng/*; do
add_file "$i"
done
add_dir "/var/lib/syslog-ng/"
2009-05-24 15:47:17 +02:00
### fix licenses
2009-05-08 08:05:45 +02:00
add_file "/usr/share/licenses/bzip2/LICENSE"
add_file "/usr/share/licenses/hdparm/LICENSE.TXT"
add_file "/usr/share/licenses/ncurses/license.txt"
add_file "/usr/share/licenses/pcre/LICENSE"
2009-05-08 08:49:58 +02:00
add_file "/usr/share/licenses/shadow/COPYING"
2010-05-14 17:51:14 +02:00
add_file "/usr/share/licenses/sdparm/LICENSE"
2009-05-08 08:05:45 +02:00
add_file "/usr/share/licenses/vim/license.txt"
2010-02-07 23:43:45 +01:00
add_file "/usr/share/licenses/zlib/LICENSE"
2010-07-25 21:53:03 +02:00
add_file "/usr/share/licenses/iana-etc/LICENSE"
2007-02-22 23:46:50 +01:00
}
help ()
{
cat <<HELPEOF
This hook sets up all initial directories and installs base
klibc utilities and libraries for a arch boot image.
DO NOT remove this one unless you know what you're doing.
HELPEOF
}