index : archiso32 | |
Archlinux32 iso tools | gitolite user |
summaryrefslogtreecommitdiff |
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-02-08 03:40:40 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2010-02-08 03:45:36 -0300 |
commit | 8969c57b75f6a8f1fa09afaf01cbc7583f5d98d0 (patch) | |
tree | 2de970788f3350607d38c5db70bffe671a3c8354 /configs/install-iso/overlay | |
parent | 5f0614b42f3380d4f62061ee4a61cdb4dc9fa766 (diff) |
-rwxr-xr-x | configs/install-iso/overlay/arch/setup | 3 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/arch-release | 1 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/archiso/functions | 12 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/archiso/getshell | 9 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/fstab | 9 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/hosts | 8 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/issue | 5 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/motd | 13 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/pacman.conf | 82 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/pam.d/su | 6 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/rc.conf | 25 | ||||
-rwxr-xr-x | configs/install-iso/overlay/etc/rc.d/archiso | 87 | ||||
-rw-r--r-- | configs/install-iso/overlay/etc/sudoers | 2 | ||||
-rwxr-xr-x | configs/install-iso/overlay/usr/bin/km | 2 |
diff --git a/configs/install-iso/overlay/arch/setup b/configs/install-iso/overlay/arch/setup deleted file mode 100755 index e9d1660..0000000 --- a/configs/install-iso/overlay/arch/setup +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -# -aif -p interactive diff --git a/configs/install-iso/overlay/etc/arch-release b/configs/install-iso/overlay/etc/arch-release deleted file mode 100644 index 153f8b2..0000000 --- a/configs/install-iso/overlay/etc/arch-release +++ /dev/null @@ -1 +0,0 @@ -Arch Linux Live ISO diff --git a/configs/install-iso/overlay/etc/archiso/functions b/configs/install-iso/overlay/etc/archiso/functions deleted file mode 100644 index fdd48f4..0000000 --- a/configs/install-iso/overlay/etc/archiso/functions +++ /dev/null @@ -1,12 +0,0 @@ -# vim: set ft=sh: - -cmdline_param () -{ - for param in ${CMDLINE}; do - case "${param}" in - $1=*) echo "${param##*=}"; return ;; - *) continue ;; - esac - done - [ -n "${2}" ] && echo "${2}" -} diff --git a/configs/install-iso/overlay/etc/archiso/getshell b/configs/install-iso/overlay/etc/archiso/getshell deleted file mode 100644 index a6f8775..0000000 --- a/configs/install-iso/overlay/etc/archiso/getshell +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -. /etc/archiso/functions - -shell="$(cmdline_param shell)" -[ -n "${shell}" ] && shell="/bin/bash" -[ ! -e "${shell}" ] && shell="/bin/sh" - -exec ${shell} diff --git a/configs/install-iso/overlay/etc/fstab b/configs/install-iso/overlay/etc/fstab deleted file mode 100644 index 883ebbb..0000000 --- a/configs/install-iso/overlay/etc/fstab +++ /dev/null @@ -1,9 +0,0 @@ -# /etc/fstab: static file system information -# <file system> <dir> <type> <options> <dump> <pass> -aufs / aufs noauto 0 0 -none /dev/pts devpts defaults 0 0 -none /dev/shm tmpfs defaults 0 0 - -/dev/cdrom /bootcd iso9660 ro,user,noauto 0 0 - -### Auto generated entries get added here: diff --git a/configs/install-iso/overlay/etc/hosts b/configs/install-iso/overlay/etc/hosts deleted file mode 100644 index b6f25e3..0000000 --- a/configs/install-iso/overlay/etc/hosts +++ /dev/null @@ -1,8 +0,0 @@ -# -# /etc/hosts: static lookup table for host names -# - -#<ip-address> <hostname.domain.org> <hostname> -127.0.0.1 localhost.localdomain localhost archiso - -# End of file diff --git a/configs/install-iso/overlay/etc/issue b/configs/install-iso/overlay/etc/issue deleted file mode 100644 index ce82e88..0000000 --- a/configs/install-iso/overlay/etc/issue +++ /dev/null @@ -1,5 +0,0 @@ -[H[2J -Arch Linux Live ISO (\l) -\s-\r \m. -Default logins "root" and "arch" have no password. -To begin installation, login as root. diff --git a/configs/install-iso/overlay/etc/motd b/configs/install-iso/overlay/etc/motd deleted file mode 100644 index bbe312f..0000000 --- a/configs/install-iso/overlay/etc/motd +++ /dev/null @@ -1,13 +0,0 @@ -************************************************************** -* To begin installation, run /arch/setup * -* You can find documentation at * -* /arch/docs/official_installation_guide_en * -* * -* i18n: Use the 'km' utility to change your keyboard layout * -* and console font. * -* * -* If you are looking to install Arch on something more * -* exotic, such as your kerosene-powered cheese grater, * -* please consult http://wiki.archlinux.org. * -* * -************************************************************** diff --git a/configs/install-iso/overlay/etc/pacman.conf b/configs/install-iso/overlay/etc/pacman.conf deleted file mode 100644 index de7e17d..0000000 --- a/configs/install-iso/overlay/etc/pacman.conf +++ /dev/null @@ -1,82 +0,0 @@ -# -# /etc/pacman.conf -# -# See the pacman.conf(5) manpage for option and repository directives - -# -# GENERAL OPTIONS -# -[options] -# The following paths are commented out with their default values listed. -# If you wish to use different paths, uncomment and update the paths. -#RootDir = / -#DBPath = /var/lib/pacman/ -#CacheDir = /var/cache/pacman/pkg/ -#LogFile = /var/log/pacman.log -HoldPkg = pacman glibc -# If upgrades are available for these packages they will be asked for first -SyncFirst = pacman -#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u -#XferCommand = /usr/bin/curl %u > %o -#CleanMethod = KeepInstalled - -# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup -#IgnorePkg = -#IgnoreGroup = - -#NoUpgrade = -#NoExtract = - -# Misc options (all disabled by default) -#UseSyslog -#ShowSize -#UseDelta -#TotalDownload - -# -# REPOSITORIES -# - can be defined here or included from another file -# - pacman will search repositories in the order defined here -# - local/custom mirrors can be added here or in separate files -# - repositories listed first will take precedence when packages -# have identical names, regardless of version number -# - URLs will have $repo replaced by the name of the current repo -# -# Repository entries are of the format: -# [repo-name] -# Server = ServerName -# Include = IncludePath -# -# The header [repo-name] is crucial - it must be present and -# uncommented to enable the repo. -# - -# The testing repositories are disabled by default. To enable, uncomment the -# repo name header and Include lines. You can add preferred servers immediately -# after the header, and they will be used before the default mirrors. - -#[testing] -## Add your preferred servers here, they will be used first -#Include = /etc/pacman.d/mirrorlist - -[core] -# Add your preferred servers here, they will be used first -Include = /etc/pacman.d/mirrorlist - -[extra] -# Add your preferred servers here, they will be used first -Include = /etc/pacman.d/mirrorlist - -#[community-testing] -## Add your preferred servers here, they will be used first -#Include = /etc/pacman.d/mirrorlist - -[community] -# Add your preferred servers here, they will be used first -Include = /etc/pacman.d/mirrorlist - -# An example of a custom package repository. See the pacman manpage for -# tips on creating your own repositories. -#[custom] -#Server = file:///home/custompkgs - diff --git a/configs/install-iso/overlay/etc/pam.d/su b/configs/install-iso/overlay/etc/pam.d/su deleted file mode 100644 index a291042..0000000 --- a/configs/install-iso/overlay/etc/pam.d/su +++ /dev/null @@ -1,6 +0,0 @@ -#%PAM-1.0 -auth sufficient pam_rootok.so -auth sufficient pam_wheel.so trust use_uid -auth required pam_unix.so -account required pam_unix.so -session required pam_unix.so diff --git a/configs/install-iso/overlay/etc/rc.conf b/configs/install-iso/overlay/etc/rc.conf deleted file mode 100644 index 8b1c9bc..0000000 --- a/configs/install-iso/overlay/etc/rc.conf +++ /dev/null @@ -1,25 +0,0 @@ -# -# /etc/rc.conf - Main Configuration for Arch Linux - -. /etc/archiso/functions - -LOCALE_DEFAULT="en_US.UTF-8" -CLOCK_DEFAULT="" -TIMEZONE_DEFAULT="" -KEYMAP_DEFAULT="us" - -LOCALE="$(cmdline_param locale ${LOCALE_DEFAULT})" -HARDWARECLOCK="$(cmdline_param clock ${CLOCK_DEFAULT})" -TIMEZONE="$(cmdline_param timezone ${TIMEZONE_DEFAULT})" -KEYMAP="$(cmdline_param keymap ${KEYMAP_DEFAULT})" -CONSOLEFONT="$(cmdline_param consolefont)" -CONSOLEMAP="$(cmdline_param consolefont)" -USECOLOR="yes" - -MOD_AUTOLOAD="yes" - -HOSTNAME="archiso" - -#TODO add more auto-daemons here, especially the live-cd specific stuff -DAEMONS=(syslog-ng network archiso) -#TODO: auto-network find-disks find-user-home diff --git a/configs/install-iso/overlay/etc/rc.d/archiso b/configs/install-iso/overlay/etc/rc.d/archiso deleted file mode 100755 index 8d0e633..0000000 --- a/configs/install-iso/overlay/etc/rc.d/archiso +++ /dev/null @@ -1,87 +0,0 @@ -# vim: set ft=sh: -. /etc/rc.conf -. /etc/rc.d/functions -. /etc/archiso/functions - - -scan_network () -{ - netparam () { echo ${2} | sed "s|.*${1}\([^ ]*\).*|\1|gi"; } - # - netdevs=$(cat /proc/net/dev | grep ':' | cut -d':' -f1) - for net in ${netdev}; do - stats=$(ifconfig ${net} | tr -s "\n" " ") - done -} - -scan_mount_pts () -{ - #iterate over all block devices - stat_busy "Scanning local block devices" - for dev in $(echo /sys/block/*/dev /sys/block/*/*/dev); do - - devname="/dev/$(echo ${dev} | cut -d'/' -f3,4 | cut -d'/' -f1)" - mountpt="/mnt/$(basename '${devname}')" - mkdir -p "${mountpt}" 2>/dev/null - mount ${options} "${devname}" "${mountpt}" >/dev/null 2>&1 - - fstype=$(awk '{ if ($1=="${devname}") { print $3" "$4;q }}' /proc/mounts) - fstype="${fstype%%,*}" - case "${fstype%% *}" in - *fat*|ntfs|*dos) options="user,exec,uid=0,gid=100,umask=00070" ;; - *) options="users,defaults,exec" ;; - #TODO handle 'sync' on usb devices... - esac - - echo "${devname} ${mountpt} ${fstype} ${options} 0 0 #configured by archiso" >>/etc/fstab - done - stat_done -} - -scan_swap () -{ - #Archie finds a pagefile.sys for windows/dos machines... may add later - stat_busy "Finding existing swap partitions" - swapdev="$(fdisk -l 2>/dev/null | grep swap | cut -d' ' -f1)" - if [ -e "${swapdev}" ]; then - swapon ${swapdev} - echo "${swapdev} swap swap defaults 0 0 #configured by archiso" >>/etc/fstab - fi - stat_done -} - -do_homedir () -{ - stat_busy "Scanning for existing HOME directory" - user="$(cmdline_param homeuser)" - for hdir in $(find /mnt -name "home/${user}" 2>/dev/null); do - mkdir -p "/home/arch/" - # break after the first success... - mount --bind "${hdir}" "/home/arch/" && break - done - stat_done -} - -do_makeuser () -{ - stat_busy "Making the default user arch" - addgroups="audio,disk,optical,wheel" - useradd -p "" -g users -G $addgroups arch - stat_done -} - -do_locale_gen () -{ - stat_busy "Generating locales..." - sed -i "s/#\(${LOCALE/[@.]*}\)/\1/" /etc/locale.gen - /usr/sbin/locale-gen > /dev/null - stat_done -} - -case "$1" in - start) - do_locale_gen - do_makeuser - ;; -esac -exit 0 diff --git a/configs/install-iso/overlay/etc/sudoers b/configs/install-iso/overlay/etc/sudoers deleted file mode 100644 index 67b20ba..0000000 --- a/configs/install-iso/overlay/etc/sudoers +++ /dev/null @@ -1,2 +0,0 @@ -root ALL=(ALL) ALL -%wheel ALL=(ALL) NOPASSWD: ALL diff --git a/configs/install-iso/overlay/usr/bin/km b/configs/install-iso/overlay/usr/bin/km deleted file mode 100755 index e24d780..0000000 --- a/configs/install-iso/overlay/usr/bin/km +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -aif -p partial-keymap |