summaryrefslogtreecommitdiffstats
path: root/build_tools
diff options
context:
space:
mode:
Diffstat (limited to 'build_tools')
-rw-r--r--build_tools/archiso-19.tar.gzbin0 -> 68565 bytes
-rw-r--r--build_tools/archiso-19/Makefile41
-rw-r--r--build_tools/archiso-19/archiso/initcpio/hooks/archiso185
-rw-r--r--build_tools/archiso-19/archiso/initcpio/hooks/archiso_loop_mnt32
-rw-r--r--build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_common50
-rw-r--r--build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_http47
-rw-r--r--build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_nbd40
-rw-r--r--build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_nfs30
-rw-r--r--build_tools/archiso-19/archiso/initcpio/hooks/archiso_shutdown6
-rw-r--r--build_tools/archiso-19/archiso/initcpio/install/archiso22
-rw-r--r--build_tools/archiso-19/archiso/initcpio/install/archiso_kms26
-rw-r--r--build_tools/archiso-19/archiso/initcpio/install/archiso_loop_mnt13
-rw-r--r--build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_common26
-rw-r--r--build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_http15
-rw-r--r--build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nbd17
-rw-r--r--build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nfs17
-rw-r--r--build_tools/archiso-19/archiso/initcpio/install/archiso_shutdown20
-rw-r--r--build_tools/archiso-19/archiso/initcpio/script/archiso_shutdown37
-rwxr-xr-xbuild_tools/archiso-19/archiso/mkarchiso392
-rw-r--r--build_tools/archiso-19/docs/README.altbootmethods125
-rw-r--r--build_tools/archiso-19/docs/README.bootparams138
-rw-r--r--build_tools/archiso-19/docs/README.build67
-rw-r--r--build_tools/archiso-19/docs/README.knownissues12
-rw-r--r--build_tools/archiso-19/docs/README.transfer133
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/fstab0
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/hostname1
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/locale.conf1
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/machine-id0
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/pam.d/su6
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/sudoers.d/g_wheel1
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/choose-mirror.service10
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount8
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf4
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/linhes-install.service9
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/pacman-init.service15
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/etc/udev/rules.d/81-dhcpcd.rules1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/airootfs/root/.automated_script.sh36
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/root/.bash_profile7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/airootfs/root/.post_process/delete_me/menu.lst60
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/airootfs/root/.post_process/delete_me/rc.conf71
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/airootfs/root/.post_process/go.sh41
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/root/.post_process/locale.py23
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/airootfs/root/customize_airootfs.sh35
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/airootfs/root/linhes_install/LinHES-install.sh49
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/all_stop.sh5
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/airootfs/root/linhes_install/pre_install.sh120
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/airootfs/root/linhes_install/startx35
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/airootfs/usr/bin/autologin2
-rw-r--r--build_tools/archiso-19/mythvantage/airootfs/usr/bin/go.sh2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/fstab0
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/hostname1
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/locale.conf1
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/machine-id0
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/pam.d/su6
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/sudoers.d/g_wheel1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/scripts/choose-mirror26
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/choose-mirror.service10
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/etc-pacman.d-gnupg.mount8
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/getty@tty1.service.d/autologin.conf3
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/pacman-init.service15
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/udev/rules.d/81-dhcpcd.rules1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/.automated_script.sh34
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/.zlogin1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/customize_airootfs.sh23
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/install.txt3
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/fstab0
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/hostname1
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/locale.conf1
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/machine-id0
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/pam.d/su6
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/sudoers.d/g_wheel1
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/choose-mirror.service10
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount8
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf4
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/linhes-install.service9
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/pacman-init.service15
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/udev/rules.d/81-dhcpcd.rules1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.automated_script.sh36
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.bash_profile7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/menu.lst60
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/rc.conf71
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/go.sh41
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/locale.py23
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs/root/customize_airootfs.sh35
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/LinHES-install.sh49
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/all_stop.sh5
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/pre_install.sh120
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/startx35
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/autologin2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/go.sh2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/backup_copy/backup_copy/isolinux/isolinux.cfg6
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/backup_copy/isolinux/isolinux.cfg6
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/build.sh360
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/archiso-x86_64-cd.conf4
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/archiso-x86_64-usb.conf4
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/uefi-shell-v1-x86_64.conf2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/uefi-shell-v2-x86_64.conf2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/loader.conf2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/isolinux/isolinux.cfg6
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/mkinitcpio.conf7
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/mkinitcpio.conf.orig2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/packages.both.orig62
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/packages.i6860
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/packages.x86_64153
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/packages.x86_64.cache29
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/pacman.conf77
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/pristine.list4
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/profile_files/boot_background.psdbin0 -> 1401824 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_disk_testing.pacman9
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/profile_files/local_disk_testing.pngbin0 -> 82330 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_release.pacman7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_release.pngbin0 -> 81670 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_testing.pacman7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_testing.pngbin0 -> 79914 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.i68646
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.x86_64153
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.x86_64.cache28
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/pacman.conf70
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/pristine.list2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_release.pacman7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_release.pngbin0 -> 150218 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_testing.pacman7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_testing.pngbin0 -> 82542 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/arch-release1
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/archiso/functions20
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/conf.d/dhcpcd6
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hostname1
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts9
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts.allow8
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts.deny6
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/inittab48
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/issue5
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/locale.conf1
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/locale.gen462
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/nsswitch.conf19
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/pam.d/su6
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.conf7
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.d/functions.d/symlink_used_block_devices7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.d/pacman-init34
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.local112
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/sudoers.d/g_wheel1
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/vconsole.conf1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/go.sh40
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/locale.py23
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/menu.lst60
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/rc.conf71
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/LinHES-install.sh49
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/startx35
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/usr/bin/autologin2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/usr/bin/go.sh2
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso.cfg11
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_head.cfg25
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe32.cfg32
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe64.cfg32
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_32_inc.cfg3
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_both_inc.cfg4
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_choose.cfg11
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys32.cfg9
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys64.cfg9
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_32_inc.cfg3
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_both_inc.cfg4
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_choose.cfg11
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_tail.cfg27
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/splash.pngbin0 -> 45400 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/backup_copy/syslinux/syslinux.cfg5
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/build.sh367
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/fstab0
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/hostname1
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/locale.conf1
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/machine-id0
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/pam.d/su6
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/sudoers.d/g_wheel1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/scripts/choose-mirror26
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/choose-mirror.service10
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/etc-pacman.d-gnupg.mount8
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/getty@tty1.service.d/autologin.conf3
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/pacman-init.service15
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/udev/rules.d/81-dhcpcd.rules1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/airootfs.orig/root/.automated_script.sh34
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/.zlogin1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/airootfs.orig/root/customize_airootfs.sh23
-rw-r--r--build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/install.txt3
-rw-r--r--build_tools/archiso-19/mythvantage/crap/mkinitcpio.conf.orig2
-rw-r--r--build_tools/archiso-19/mythvantage/crap/packages.both.orig62
-rw-r--r--build_tools/archiso-19/mythvantage/crap/packages.i6860
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/arch-release1
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions20
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/conf.d/dhcpcd6
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hostname1
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts9
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts.allow8
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts.deny6
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/inittab48
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/issue5
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/locale.conf1
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/locale.gen462
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/nsswitch.conf19
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/pam.d/su6
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.conf7
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.d/functions.d/symlink_used_block_devices7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.d/pacman-init34
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.local112
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/sudoers.d/g_wheel1
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/vconsole.conf1
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/go.sh40
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/locale.py23
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/menu.lst60
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/rc.conf71
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/LinHES-install.sh49
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/startx35
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/usr/bin/autologin2
-rw-r--r--build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/usr/bin/go.sh2
-rw-r--r--build_tools/archiso-19/mythvantage/efiboot/loader/entries/archiso-x86_64-cd.conf4
-rw-r--r--build_tools/archiso-19/mythvantage/efiboot/loader/entries/archiso-x86_64-usb.conf4
-rw-r--r--build_tools/archiso-19/mythvantage/efiboot/loader/entries/uefi-shell-v1-x86_64.conf2
-rw-r--r--build_tools/archiso-19/mythvantage/efiboot/loader/entries/uefi-shell-v2-x86_64.conf2
-rw-r--r--build_tools/archiso-19/mythvantage/efiboot/loader/loader.conf2
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/go.sh82
-rw-r--r--build_tools/archiso-19/mythvantage/isolinux/isolinux.cfg6
-rw-r--r--build_tools/archiso-19/mythvantage/mkinitcpio.conf7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/profile_files/boot_background.psdbin0 -> 1401824 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/profile_files/local_disk_testing.pacman9
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/profile_files/local_disk_testing.pngbin0 -> 82330 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/profile_files/local_mirror_release.pacman7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/profile_files/local_mirror_release.pngbin0 -> 81670 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/profile_files/local_mirror_testing.pacman7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/profile_files/local_mirror_testing.pngbin0 -> 79914 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/profile_files/packages.i68646
-rw-r--r--build_tools/archiso-19/mythvantage/profile_files/packages.x86_64153
-rw-r--r--build_tools/archiso-19/mythvantage/profile_files/packages.x86_64.cache29
-rw-r--r--build_tools/archiso-19/mythvantage/profile_files/pacman.conf70
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/profile_files/pristine.list4
-rw-r--r--build_tools/archiso-19/mythvantage/profile_files/remote_release.pacman7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/profile_files/remote_release.pngbin0 -> 150218 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/profile_files/remote_testing.pacman7
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/profile_files/remote_testing.pngbin0 -> 82542 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/syslinux/archiso.cfg11
-rw-r--r--build_tools/archiso-19/mythvantage/syslinux/archiso_head.cfg44
-rw-r--r--build_tools/archiso-19/mythvantage/syslinux/archiso_pxe_inc.cfg3
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/syslinux/archiso_sys.cfg40
-rw-r--r--build_tools/archiso-19/mythvantage/syslinux/archiso_sys_inc.cfg3
-rw-r--r--build_tools/archiso-19/mythvantage/syslinux/archiso_tail.cfg27
-rwxr-xr-xbuild_tools/archiso-19/mythvantage/syslinux/hardsub.cfg58
-rw-r--r--build_tools/archiso-19/mythvantage/syslinux/splash.pngbin0 -> 79914 bytes
-rw-r--r--build_tools/archiso-19/mythvantage/syslinux/syslinux.cfg5
-rwxr-xr-xbuild_tools/archiso/mythvantage/build.sh.backup63
-rw-r--r--build_tools/archiso/mythvantage/packages.x86_64153
-rw-r--r--build_tools/archiso/mythvantage/packages.x86_64.cache28
-rw-r--r--build_tools/archiso/mythvantage/pacman.conf77
-rw-r--r--build_tools/archiso/mythvantage/pristine.list4
-rw-r--r--build_tools/archiso/mythvantage/profile_files/packages.x86_644
251 files changed, 7536 insertions, 24 deletions
diff --git a/build_tools/archiso-19.tar.gz b/build_tools/archiso-19.tar.gz
new file mode 100644
index 0000000..86b9eb4
--- /dev/null
+++ b/build_tools/archiso-19.tar.gz
Binary files differ
diff --git a/build_tools/archiso-19/Makefile b/build_tools/archiso-19/Makefile
new file mode 100644
index 0000000..4064b90
--- /dev/null
+++ b/build_tools/archiso-19/Makefile
@@ -0,0 +1,41 @@
+V=19
+
+INSTALL_FILES=$(wildcard archiso/initcpio/install/*)
+HOOKS_FILES=$(wildcard archiso/initcpio/hooks/*)
+SCRIPT_FILES=$(wildcard archiso/initcpio/script/*)
+
+INSTALL_DIR=$(DESTDIR)/usr/lib/initcpio/install
+HOOKS_DIR=$(DESTDIR)/usr/lib/initcpio/hooks
+SCRIPT_DIR=$(DESTDIR)/usr/lib/initcpio
+
+DOC_FILES=$(wildcard docs/*)
+
+DOC_DIR=$(DESTDIR)/usr/share/doc/archiso
+
+
+all:
+
+install: install-program install-initcpio install-examples install-doc
+
+install-program:
+ install -D -m 755 archiso/mkarchiso $(DESTDIR)/usr/bin/mkarchiso
+
+install-initcpio:
+ install -d $(SCRIPT_DIR) $(HOOKS_DIR) $(INSTALL_DIR)
+ install -m 755 -t $(SCRIPT_DIR) $(SCRIPT_FILES)
+ install -m 644 -t $(HOOKS_DIR) $(HOOKS_FILES)
+ install -m 644 -t $(INSTALL_DIR) $(INSTALL_FILES)
+
+install-examples:
+ install -d -m 755 $(DESTDIR)/usr/share/archiso/
+ cp -a --no-preserve=ownership configs $(DESTDIR)/usr/share/archiso/
+
+install-doc:
+ install -d $(DOC_DIR)
+ install -m 644 -t $(DOC_DIR) $(DOC_FILES)
+
+dist:
+ git archive --format=tar --prefix=archiso-$(V)/ v$(V) | gzip -9 > archiso-$(V).tar.gz
+ gpg --detach-sign --use-agent archiso-$(V).tar.gz
+
+.PHONY: install install-program install-initcpio install-examples install-doc dist
diff --git a/build_tools/archiso-19/archiso/initcpio/hooks/archiso b/build_tools/archiso-19/archiso/initcpio/hooks/archiso
new file mode 100644
index 0000000..4c50566
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/hooks/archiso
@@ -0,0 +1,185 @@
+# args: source, newroot, mountpoint
+_mnt_fs() {
+ local img="${1}"
+ local newroot="${2}"
+ local mnt="${3}"
+ local img_fullname="${img##*/}";
+ local img_name="${img_fullname%%.*}"
+ local dm_snap_name="${dm_snap_prefix}_${img_name}"
+ local ro_dev ro_dev_size rw_dev
+
+ ro_dev=$(losetup --find --show --read-only "${img}")
+ echo ${ro_dev} >> /run/archiso/used_block_devices
+ ro_dev_size=$(blockdev --getsz ${ro_dev})
+ if [[ "${cowfile_size}" == "100" ]]; then
+ rw_dev_size=${ro_dev_size}
+ else
+ # size calculation done in this way to avoid integer overflow when ro_dev_size is > 10.2G
+ rw_dev_size=$((ro_dev_size/100*cowfile_size))
+ fi
+
+ if [[ "${cow_persistent}" == "P" ]]; then
+ if [[ -f "/run/archiso/cowspace/${cow_directory}/${img_name}.cow" ]]; then
+ msg ":: Found '/run/archiso/cowspace/${cow_directory}/${img_name}.cow', using as persistent."
+ else
+ msg ":: Creating '/run/archiso/cowspace/${cow_directory}/${img_name}.cow' as persistent."
+ dd of="/run/archiso/cowspace/${cow_directory}/${img_name}.cow" count=0 seek=${rw_dev_size} &> /dev/null
+ fi
+ else
+ if [[ -f "/run/archiso/cowspace/${cow_directory}/${img_name}.cow" ]]; then
+ msg ":: Found '/run/archiso/cowspace/${cow_directory}/${img_name}.cow' but non-persistent requested, removing."
+ rm -f "/run/archiso/cowspace/${cow_directory}/${img_name}.cow"
+ fi
+ msg ":: Creating '/run/archiso/cowspace/${cow_directory}/${img_name}.cow' as non-persistent."
+ dd of="/run/archiso/cowspace/${cow_directory}/${img_name}.cow" count=0 seek=${rw_dev_size} &> /dev/null
+ fi
+
+ rw_dev=$(losetup --find --show "/run/archiso/cowspace/${cow_directory}/${img_name}.cow")
+ echo ${rw_dev} >> /run/archiso/used_block_devices
+
+ echo "0 ${ro_dev_size} snapshot ${ro_dev} ${rw_dev} ${cow_persistent} 8" | dmsetup create ${dm_snap_name}
+
+ _mnt_dev "/dev/mapper/${dm_snap_name}" "${newroot}${mnt}" "-w"
+ echo $(readlink -f /dev/mapper/${dm_snap_name}) >> /run/archiso/used_block_devices
+}
+
+# args: /path/to/image_file, mountpoint
+_mnt_sfs() {
+ local img="${1}"
+ local mnt="${2}"
+ local img_fullname="${img##*/}"
+ local sfs_dev
+
+ if [[ "${copytoram}" == "y" ]]; then
+ msg -n ":: Copying squashfs image to RAM..."
+ if ! cp "${img}" "/run/archiso/copytoram/${img_fullname}" ; then
+ echo "ERROR: while copy '${img}' to '/run/archiso/copytoram/${img_fullname}'"
+ launch_interactive_shell
+ fi
+ img="/run/archiso/copytoram/${img_fullname}"
+ msg "done."
+ fi
+ sfs_dev=$(losetup --find --show --read-only "${img}")
+ echo ${sfs_dev} >> /run/archiso/used_block_devices
+ _mnt_dev "${sfs_dev}" "${mnt}" "-r"
+}
+
+# args: device, mountpoint, flags
+_mnt_dev() {
+ local dev="${1}"
+ local mnt="${2}"
+ local flg="${3}"
+
+ mkdir -p "${mnt}"
+
+ msg ":: Mounting '${dev}' to '${mnt}'"
+
+ while ! poll_device "${dev}" 30; do
+ echo "ERROR: '${dev}' device did not show up after 30 seconds..."
+ echo " Falling back to interactive prompt"
+ echo " You can try to fix the problem manually, log out when you are finished"
+ launch_interactive_shell
+ done
+
+ if mount "${flg}" "${dev}" "${mnt}"; then
+ msg ":: Device '${dev}' mounted successfully."
+ else
+ echo "ERROR; Failed to mount '${dev}'"
+ echo " Falling back to interactive prompt"
+ echo " You can try to fix the problem manually, log out when you are finished"
+ launch_interactive_shell
+ fi
+}
+
+_verify_checksum() {
+ local _status
+ cd "/run/archiso/bootmnt/${archisobasedir}/${arch}"
+ md5sum -c airootfs.md5 > /tmp/checksum.log 2>&1
+ _status=$?
+ cd "${OLDPWD}"
+ return ${_status}
+}
+
+run_hook() {
+ [[ -z "${arch}" ]] && arch="$(uname -m)"
+ [[ -z "${cowspace_size}" ]] && cowspace_size="75%"
+ [[ -z "${copytoram_size}" ]] && copytoram_size="75%"
+ [[ -z "${archisobasedir}" ]] && archisobasedir="arch"
+ [[ -z "${dm_snap_prefix}" ]] && dm_snap_prefix="arch"
+ [[ -z "${archisodevice}" ]] && archisodevice="/dev/disk/by-label/${archisolabel}"
+ if [[ -z "${cowfile_size}" ]]; then
+ cowfile_size="100"
+ else
+ cowfile_size=${cowfile_size/%}
+ fi
+
+ if [[ -n "${cow_label}" ]]; then
+ cow_device="/dev/disk/by-label/${cow_label}"
+ [[ -z "${cow_persistent}" ]] && cow_persistent="P"
+ elif [[ -n "${cow_device}" ]]; then
+ [[ -z "${cow_persistent}" ]] && cow_persistent="P"
+ else
+ cow_persistent="N"
+ fi
+
+ [[ -z "${cow_directory}" ]] && cow_directory="persistent_${archisolabel}/${arch}"
+
+ # set mount handler for archiso
+ mount_handler="archiso_mount_handler"
+}
+
+# This function is called normally from init script, but it can be called
+# as chain from other mount handlers.
+# args: /path/to/newroot
+archiso_mount_handler() {
+ local newroot="${1}"
+
+ if ! mountpoint -q "/run/archiso/bootmnt"; then
+ _mnt_dev "${archisodevice}" "/run/archiso/bootmnt" "-r"
+ if [[ "${copytoram}" != "y" ]]; then
+ echo $(readlink -f ${archisodevice}) >> /run/archiso/used_block_devices
+ fi
+ fi
+
+ if [[ "${checksum}" == "y" ]]; then
+ if [[ -f "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.md5" ]]; then
+ msg -n ":: Self-test requested, please wait..."
+ if _verify_checksum; then
+ msg "done. Checksum is OK, continue booting."
+ else
+ echo "ERROR: one or more files are corrupted"
+ echo "see /tmp/checksum.log for details"
+ launch_interactive_shell
+ fi
+ else
+ echo "ERROR: checksum=y option specified but ${archisobasedir}/${arch}/airootfs.md5 not found"
+ launch_interactive_shell
+ fi
+ fi
+
+ if [[ "${copytoram}" == "y" ]]; then
+ msg ":: Mounting /run/archiso/copytoram (tmpfs) filesystem, size=${copytoram_size}"
+ mkdir -p /run/archiso/copytoram
+ mount -t tmpfs -o "size=${copytoram_size}",mode=0755 copytoram /run/archiso/copytoram
+ fi
+
+ if [[ -n "${cow_device}" ]]; then
+ _mnt_dev "${cow_device}" "/run/archiso/cowspace" "-r"
+ echo $(readlink -f ${cow_device}) >> /run/archiso/used_block_devices
+ mount -o remount,rw "/run/archiso/cowspace"
+ else
+ msg ":: Mounting /run/archiso/cowspace (tmpfs) filesystem, size=${cowspace_size}..."
+ mkdir -p /run/archiso/cowspace
+ mount -t tmpfs -o "size=${cowspace_size}",mode=0755 cowspace /run/archiso/cowspace
+ fi
+ mkdir -p "/run/archiso/cowspace/${cow_directory}"
+
+ _mnt_sfs "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.sfs" "/run/archiso/sfs/airootfs"
+ _mnt_fs "/run/archiso/sfs/airootfs/airootfs.img" "${newroot}" "/"
+
+ if [[ "${copytoram}" == "y" ]]; then
+ umount /run/archiso/bootmnt
+ fi
+}
+
+# vim:ft=sh:ts=4:sw=4:et:
diff --git a/build_tools/archiso-19/archiso/initcpio/hooks/archiso_loop_mnt b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_loop_mnt
new file mode 100644
index 0000000..a02cfac
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_loop_mnt
@@ -0,0 +1,32 @@
+# vim: set ft=sh:
+
+run_hook () {
+ [[ -n "${img_label}" ]] && img_dev="/dev/disk/by-label/${img_label}"
+ if [[ -n "${img_dev}" && -n "${img_loop}" ]]; then
+ mount_handler="archiso_loop_mount_handler"
+ fi
+}
+
+archiso_loop_mount_handler () {
+ newroot="${1}"
+
+ local _dev_loop
+
+ msg ":: Setup a loop device from ${img_loop} located at device ${img_dev}"
+ _mnt_dev "${img_dev}" "/run/archiso/img_dev" "-r"
+ if [[ "${copytoram}" != "y" ]]; then
+ echo $(readlink -f ${img_dev}) >> /run/archiso/used_block_devices
+ fi
+
+ if ! _dev_loop=$(losetup --find --show --read-only "/run/archiso/img_dev/${img_loop}"); then
+ echo "ERROR: Setting loopback device for file '/run/archiso/img_dev/${img_loop}'"
+ launch_interactive_shell
+ fi
+
+ archiso_mount_handler ${newroot}
+
+ if [[ "${copytoram}" == "y" ]]; then
+ losetup -d ${_dev_loop}
+ umount /run/archiso/img_dev
+ fi
+}
diff --git a/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_common b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_common
new file mode 100644
index 0000000..d8ac709
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_common
@@ -0,0 +1,50 @@
+# vim: set ft=sh:
+
+run_hook () {
+ local i net_mac bootif_mac bootif_dev
+ # These variables will be parsed from /tmp/net-*.conf generated by ipconfig
+ local DEVICE
+ local IPV4ADDR IPV4BROADCAST IPV4NETMASK IPV4GATEWAY IPV4DNS0 IPV4DNS1
+ local HOSTNAME DNSDOMAIN NISDOMAIN ROOTSERVER ROOTPATH
+ local filename
+ # /tmp/net-*.conf
+
+ if [[ -n "${ip}" ]]; then
+ if [[ -n "${BOOTIF}" ]]; then
+ bootif_mac=${BOOTIF#01-}
+ bootif_mac=${bootif_mac//-/:}
+ for i in /sys/class/net/*/address; do
+ read net_mac < ${i}
+ if [[ "${bootif_mac}" == "${net_mac}" ]]; then
+ bootif_dev=${i#/sys/class/net/}
+ bootif_dev=${bootif_dev%/address}
+ break
+ fi
+ done
+ ip="${ip}::${bootif_dev}"
+ fi
+
+ # setup network and save some values
+ ipconfig "ip=${ip}"
+
+ . /tmp/net-*.conf
+
+ pxeserver=${ROOTSERVER}
+
+ # setup DNS resolver
+ if [[ "${IPV4DNS0}" != "0.0.0.0" ]]; then
+ echo "nameserver ${IPV4DNS0}" > /etc/resolv.conf
+ fi
+ if [[ "${IPV4DNS1}" != "0.0.0.0" ]]; then
+ echo "nameserver ${IPV4DNS1}" >> /etc/resolv.conf
+ fi
+ fi
+}
+
+run_latehook () {
+ [[ -z "${copy_resolvconf}" ]] && copy_resolvconf="y"
+
+ if [[ "${copy_resolvconf}" != "n" && -f /etc/resolv.conf ]]; then
+ cp /etc/resolv.conf /new_root/etc/resolv.conf
+ fi
+}
diff --git a/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_http b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_http
new file mode 100644
index 0000000..e36fa21
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_http
@@ -0,0 +1,47 @@
+# vim: set ft=sh:
+
+run_hook() {
+ if [[ -n "${ip}" && -n "${archiso_http_srv}" ]]; then
+
+ archiso_http_srv=$(eval echo ${archiso_http_srv})
+ [[ -z "${archiso_http_spc}" ]] && archiso_http_spc="75%"
+
+ mount_handler="archiso_pxe_http_mount_handler"
+ fi
+}
+
+# Fetch a file with CURL
+#
+# $1 URL
+# $2 Destination directory inside httpspace/${archisobasedir}
+_curl_get() {
+ local _url="${1}"
+ local _dst="${2}"
+
+ msg ":: Downloading '${_url}'"
+ if ! curl -L -f -o "/run/archiso/httpspace/${archisobasedir}${_dst}/${_url##*/}" --create-dirs "${_url}"; then
+ echo "ERROR: Downloading '${_url}'"
+ echo " Falling back to interactive prompt"
+ echo " You can try to fix the problem manually, log out when you are finished"
+ launch_interactive_shell
+ fi
+}
+
+archiso_pxe_http_mount_handler () {
+ newroot="${1}"
+
+ msg ":: Mounting /run/archiso/httpspace (tmpfs) filesystem, size='${archiso_http_spc}'"
+ mkdir -p "/run/archiso/httpspace"
+ mount -t tmpfs -o size="${archiso_http_spc}",mode=0755 httpspace "/run/archiso/httpspace"
+
+ _curl_get "${archiso_http_srv}${archisobasedir}/${arch}/airootfs.sfs" "/${arch}"
+
+ if [[ "${checksum}" == "y" ]]; then
+ _curl_get "${archiso_http_srv}${archisobasedir}/${arch}/airootfs.md5" "/${arch}"
+ fi
+
+ mkdir -p "/run/archiso/bootmnt"
+ mount -o bind /run/archiso/httpspace /run/archiso/bootmnt
+
+ archiso_mount_handler ${newroot}
+}
diff --git a/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_nbd b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_nbd
new file mode 100644
index 0000000..d9bc6d8
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_nbd
@@ -0,0 +1,40 @@
+# vim: set ft=sh:
+
+run_hook() {
+ if [[ -n "${ip}" && -n "${archiso_nbd_srv}" ]]; then
+
+ archiso_nbd_srv=$(eval echo ${archiso_nbd_srv})
+ [[ -z "${archiso_nbd_name}" ]] && archiso_nbd_name="archiso"
+
+ mount_handler="archiso_pxe_nbd_mount_handler"
+ fi
+}
+
+archiso_pxe_nbd_mount_handler () {
+ newroot="${1}"
+
+ # Module autoloading like with loop devices does not work, doing manually...
+ modprobe nbd 2> /dev/null
+
+ msg ":: Waiting for boot device..."
+ while ! poll_device /dev/nbd0 30; do
+ echo "ERROR: boot device didn't show up after 30 seconds..."
+ echo " Falling back to interactive prompt"
+ echo " You can try to fix the problem manually, log out when you are finished"
+ launch_interactive_shell
+ done
+
+ msg ":: Setup NBD from ${archiso_nbd_srv} at /dev/nbd0"
+ nbd-client ${archiso_nbd_srv} -N ${archiso_nbd_name} /dev/nbd0
+
+ if [[ "${copytoram}" != "n" ]]; then
+ copytoram="y"
+ fi
+
+ archisodevice=/dev/nbd0
+
+ archiso_mount_handler ${newroot}
+
+ msg ":: Disconnect NBD from ${archiso_nbd_srv} at /dev/nbd0"
+ nbd-client -d /dev/nbd0
+}
diff --git a/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_nfs b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_nfs
new file mode 100644
index 0000000..67874ec
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_pxe_nfs
@@ -0,0 +1,30 @@
+# vim: set ft=sh:
+
+run_hook() {
+ if [[ -n "${ip}" && -n "${archiso_nfs_srv}" ]]; then
+
+ archiso_nfs_srv=$(eval echo ${archiso_nfs_srv})
+ [[ -n "${archiso_nfs_opt}" ]] && archiso_nfs_opt="-o ${archiso_nfs_opt}"
+
+ mount_handler="archiso_nfs_mount_handler"
+ fi
+}
+
+archiso_nfs_mount_handler() {
+ newroot="${1}"
+ mkdir -p "/run/archiso/bootmnt"
+ msg ":: Mounting '${archiso_nfs_srv}'"
+ # Do not put "${archiso_nfs_opt}" nfsmount fails!
+ if ! nfsmount ${archiso_nfs_opt} "${archiso_nfs_srv}" "/run/archiso/bootmnt"; then
+ echo "ERROR: Mounting '${archiso_nfs_srv}'"
+ echo " Falling back to interactive prompt"
+ echo " You can try to fix the problem manually, log out when you are finished"
+ launch_interactive_shell
+ fi
+
+ if [[ "${copytoram}" != "n" ]]; then
+ copytoram="y"
+ fi
+
+ archiso_mount_handler ${newroot}
+}
diff --git a/build_tools/archiso-19/archiso/initcpio/hooks/archiso_shutdown b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_shutdown
new file mode 100644
index 0000000..e50dedb
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/hooks/archiso_shutdown
@@ -0,0 +1,6 @@
+run_cleanuphook() {
+ rm -rf /usr/lib/modules
+ cp -ax / /run/initramfs
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso b/build_tools/archiso-19/archiso/initcpio/install/archiso
new file mode 100644
index 0000000..8893667
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/install/archiso
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+build() {
+ add_module "cdrom"
+ add_module "loop"
+ add_module "dm-snapshot"
+
+ add_runscript
+
+ add_binary /usr/lib/udev/cdrom_id
+ add_binary blockdev
+ add_binary dmsetup
+ add_binary losetup
+ add_binary mountpoint
+
+ add_file /usr/lib/udev/rules.d/60-cdrom_id.rules
+ add_file /usr/lib/udev/rules.d/10-dm.rules
+ add_file /usr/lib/udev/rules.d/95-dm-notify.rules
+ add_file /usr/lib/initcpio/udev/11-dm-initramfs.rules /usr/lib/udev/rules.d/11-dm-initramfs.rules
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_kms b/build_tools/archiso-19/archiso/initcpio/install/archiso_kms
new file mode 100644
index 0000000..3ff31f3
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_kms
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+build() {
+ add_module "radeon"
+ add_module "nouveau"
+ add_module "i915"
+ add_module "via-agp"
+ add_module "sis-agp"
+ add_module "intel-agp"
+
+ if [[ $(uname -m) == i686 ]]; then
+ add_module "amd64-agp"
+ add_module "ati-agp"
+ add_module "sworks-agp"
+ add_module "ali-agp"
+ add_module "amd-k7-agp"
+ add_module "nvidia-agp"
+ add_module "efficeon-agp"
+ fi
+}
+
+help() {
+ cat << HELPEOF
+Adds all common KMS drivers to the initramfs image.
+HELPEOF
+}
diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_loop_mnt b/build_tools/archiso-19/archiso/initcpio/install/archiso_loop_mnt
new file mode 100644
index 0000000..59f1d94
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_loop_mnt
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+build() {
+ add_runscript
+}
+
+help() {
+cat<<HELPEOF
+ This hook loads the necessary modules for boot via loop device.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_common b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_common
new file mode 100644
index 0000000..eec9a7e
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_common
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+build() {
+ add_checked_modules -f "(irda|phy|wimax|wireless|ppp_|plip|pppoe)" "/drivers/net/"
+
+ add_runscript
+
+ add_binary /usr/lib/initcpio/ipconfig /bin/ipconfig
+
+ # Add hosts support files+dns
+ add_symlink /usr/lib/libnss_files.so.2 $(readlink /usr/lib/libnss_files.so.2)
+ add_binary $(readlink -f /usr/lib/libnss_files.so.2)
+ add_symlink /usr/lib/libnss_dns.so.2 $(readlink /usr/lib/libnss_dns.so.2)
+ add_binary $(readlink -f /usr/lib/libnss_dns.so.2)
+
+ add_dir /etc
+ echo "hosts: files dns" > $BUILDROOT/etc/nsswitch.conf
+}
+
+help() {
+cat<<HELPEOF
+ This hook loads the necessary modules for boot via PXE.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_http b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_http
new file mode 100644
index 0000000..4e02f98
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_http
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+build() {
+ add_runscript
+
+ add_binary curl
+}
+
+help() {
+cat<<HELPEOF
+ This hook loads the necessary modules for boot via PXE and HTTP.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nbd b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nbd
new file mode 100644
index 0000000..47d98ce
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nbd
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+build() {
+ add_module "nbd"
+
+ add_runscript
+
+ add_binary nbd-client
+}
+
+help() {
+cat<<HELPEOF
+ This hook loads the necessary modules for boot via PXE and NBD.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nfs b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nfs
new file mode 100644
index 0000000..f8226e5
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_pxe_nfs
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+build() {
+ add_module "nfs"
+
+ add_runscript
+
+ add_binary /usr/lib/initcpio/nfsmount /bin/nfsmount
+}
+
+help() {
+ cat <<HELPEOF
+ This hook loads the necessary modules for boot via PXE and NFS.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/build_tools/archiso-19/archiso/initcpio/install/archiso_shutdown b/build_tools/archiso-19/archiso/initcpio/install/archiso_shutdown
new file mode 100644
index 0000000..5ae976a
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/install/archiso_shutdown
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+build() {
+ add_binary cp
+
+ add_runscript
+
+ add_file /usr/lib/initcpio/archiso_shutdown /shutdown
+}
+
+help() {
+ cat <<HELPEOF
+This hook will create a shutdown initramfs in /run/initramfs
+that we can pivot to on shutdown in order to unmount / and
+and others mount points, dm-snapshot devices and loopback devices.
+Mostly usefull for dm-snapshot persistent.
+HELPEOF
+}
+
+# vim: set ft=sh ts=4 sw=4 et:
diff --git a/build_tools/archiso-19/archiso/initcpio/script/archiso_shutdown b/build_tools/archiso-19/archiso/initcpio/script/archiso_shutdown
new file mode 100644
index 0000000..41b3945
--- /dev/null
+++ b/build_tools/archiso-19/archiso/initcpio/script/archiso_shutdown
@@ -0,0 +1,37 @@
+#!/bin/ash
+
+# /oldroot depends on things inside /oldroot/run/archiso...
+mkdir /oldrun
+mount -n --move /oldroot/run /oldrun
+
+# Unmount all mounts now.
+umount $(mount | awk '$3 ~/^\/oldroot/ {print $3}' | sort -r)
+
+# Remove all dm-snapshot devices.
+dmsetup remove_all
+
+# Remove all loopback devices.
+for _lup in $(grep ^/dev/loop /oldrun/archiso/used_block_devices | tac); do
+ if ! losetup -d ${_lup} 2> /dev/null; then
+ umount -d ${_lup}
+ fi
+done
+
+# Unmount the space used to store *.cow.
+umount /oldrun/archiso/cowspace
+
+# Unmount boot device if needed (no copytoram=y used)
+if [[ ! -d /oldrun/archiso/copytoram ]]; then
+ if [[ -d /oldrun/archiso/img_dev ]]; then
+ umount /oldrun/archiso/img_dev
+ else
+ umount /oldrun/archiso/bootmnt
+ fi
+fi
+
+# reboot / poweroff / halt, depending on the argument passed by init
+# if something invalid is passed, we halt
+case "$1" in
+ reboot|poweroff|halt) "$1" -f ;;
+ *) halt -f;;
+esac
diff --git a/build_tools/archiso-19/archiso/mkarchiso b/build_tools/archiso-19/archiso/mkarchiso
new file mode 100755
index 0000000..5643525
--- /dev/null
+++ b/build_tools/archiso-19/archiso/mkarchiso
@@ -0,0 +1,392 @@
+#!/bin/bash
+
+set -e -u
+
+export LANG=C
+
+app_name=${0##*/}
+arch=$(uname -m)
+pkg_list=""
+run_cmd=""
+quiet="y"
+pacman_conf="/etc/pacman.conf"
+export iso_label="ARCH_$(date +%Y%m)"
+iso_publisher="Arch Linux <http://www.archlinux.org>"
+iso_application="Arch Linux Live/Rescue CD"
+install_dir="arch"
+work_dir="work"
+out_dir="out"
+sfs_comp="xz"
+
+# Show an INFO message
+# $1: message string
+_msg_info() {
+ local _msg="${1}"
+ echo "[mkarchiso] INFO: ${_msg}"
+}
+
+# Show an ERROR message then exit with status
+# $1: message string
+# $2: exit code number (with 0 does not exit)
+_msg_error() {
+ local _msg="${1}"
+ local _error=${2}
+ echo
+ echo "[mkarchiso] ERROR: ${_msg}"
+ echo
+ if [[ ${_error} -gt 0 ]]; then
+ exit ${_error}
+ fi
+}
+
+_chroot_init() {
+ mkdir -p ${work_dir}/airootfs
+ _pacman "base syslinux"
+}
+
+_chroot_run() {
+ eval arch-chroot ${work_dir}/airootfs "${run_cmd}"
+}
+
+_mount_airootfs() {
+ trap "_umount_airootfs" EXIT HUP INT TERM
+ mkdir -p "${work_dir}/mnt/airootfs"
+ _msg_info "Mounting '${work_dir}/airootfs.img' on '${work_dir}/mnt/airootfs'"
+ mount "${work_dir}/airootfs.img" "${work_dir}/mnt/airootfs"
+ _msg_info "Done!"
+}
+
+_umount_airootfs() {
+ _msg_info "Unmounting '${work_dir}/mnt/airootfs'"
+ umount "${work_dir}/mnt/airootfs"
+ _msg_info "Done!"
+ rmdir "${work_dir}/mnt/airootfs"
+ trap - EXIT HUP INT TERM
+}
+
+# Show help usage, with an exit status.
+# $1: exit status number.
+_usage ()
+{
+ echo "usage ${app_name} [options] command <command options>"
+ echo " general options:"
+ echo " -p PACKAGE(S) Package(s) to install, can be used multiple times"
+ echo " -r <command> Run <command> inside airootfs"
+ echo " -C <file> Config file for pacman."
+ echo " Default: '${pacman_conf}'"
+ echo " -L <label> Set a label for the disk"
+ echo " Default: '${iso_label}'"
+ echo " -P <publisher> Set a publisher for the disk"
+ echo " Default: '${iso_publisher}'"
+ echo " -A <application> Set an application name for the disk"
+ echo " Default: '${iso_application}'"
+ echo " -D <install_dir> Set an install_dir. All files will by located here."
+ echo " Default: '${install_dir}'"
+ echo " NOTE: Max 8 characters, use only [a-z0-9]"
+ echo " -w <work_dir> Set the working directory"
+ echo " Default: '${work_dir}'"
+ echo " -o <out_dir> Set the output directory"
+ echo " Default: '${out_dir}'"
+ echo " -c <comp_type> Set SquashFS compression type (gzip, lzma, lzo, xz)"
+ echo " Default: '${sfs_comp}'"
+ echo " -v Enable verbose output"
+ echo " -h This message"
+ echo " commands:"
+ echo " init"
+ echo " Make base layout and install base group"
+ echo " install"
+ echo " Install all specified packages (-p)"
+ echo " run"
+ echo " run command specified by -r"
+ echo " prepare"
+ echo " build all images"
+ echo " pkglist"
+ echo " make a pkglist.txt of packages installed on airootfs"
+ echo " iso <image name>"
+ echo " build an iso image from the working dir"
+ exit ${1}
+}
+
+# Shows configuration according to command mode.
+# $1: init | install | run | prepare | iso
+_show_config () {
+ local _mode="$1"
+ echo
+ _msg_info "Configuration settings"
+ _msg_info " Command: ${command_name}"
+ _msg_info " Architecture: ${arch}"
+ _msg_info " Working directory: ${work_dir}"
+ _msg_info " Installation directory: ${install_dir}"
+ case "${_mode}" in
+ init)
+ _msg_info " Pacman config file: ${pacman_conf}"
+ ;;
+ install)
+ _msg_info " Pacman config file: ${pacman_conf}"
+ _msg_info " Packages: ${pkg_list}"
+ ;;
+ run)
+ _msg_info " Run command: ${run_cmd}"
+ ;;
+ prepare)
+ ;;
+ pkglist)
+ ;;
+ iso)
+ _msg_info " Image name: ${img_name}"
+ _msg_info " Disk label: ${iso_label}"
+ _msg_info " Disk publisher: ${iso_publisher}"
+ _msg_info " Disk application: ${iso_application}"
+ ;;
+ esac
+ echo
+}
+
+# Install desired packages to airootfs
+_pacman ()
+{
+ _msg_info "Installing packages to '${work_dir}/airootfs/'..."
+
+ if [[ "${quiet}" = "y" ]]; then
+ pacstrap -C "${pacman_conf}" -c -d -G -M "${work_dir}/airootfs" $* &> /dev/null
+ else
+ pacstrap -C "${pacman_conf}" -c -d -G -M "${work_dir}/airootfs" $*
+ fi
+
+ _msg_info "Packages installed successfully!"
+}
+
+# Cleanup airootfs
+_cleanup () {
+ _msg_info "Cleaning up what we can on airootfs..."
+
+ # Delete initcpio image(s)
+ if [[ -d "${work_dir}/airootfs/boot" ]]; then
+ find "${work_dir}/airootfs/boot" -type f -name '*.img' -delete
+ fi
+ # Delete kernel(s)
+ if [[ -d "${work_dir}/airootfs/boot" ]]; then
+ find "${work_dir}/airootfs/boot" -type f -name 'vmlinuz*' -delete
+ fi
+ # Delete pacman database sync cache files (*.tar.gz)
+ if [[ -d "${work_dir}/airootfs/var/lib/pacman" ]]; then
+ find "${work_dir}/airootfs/var/lib/pacman" -maxdepth 1 -type f -delete
+ fi
+ # Delete pacman database sync cache
+ if [[ -d "${work_dir}/airootfs/var/lib/pacman/sync" ]]; then
+ find "${work_dir}/airootfs/var/lib/pacman/sync" -delete
+ fi
+ # Delete pacman package cache
+ if [[ -d "${work_dir}/airootfs/var/cache/pacman/pkg" ]]; then
+ find "${work_dir}/airootfs/var/cache/pacman/pkg" -type f -delete
+ fi
+ # Delete all log files, keeps empty dirs.
+ if [[ -d "${work_dir}/airootfs/var/log" ]]; then
+ find "${work_dir}/airootfs/var/log" -type f -delete
+ fi
+ # Delete all temporary files and dirs
+ if [[ -d "${work_dir}/airootfs/var/tmp" ]]; then
+ find "${work_dir}/airootfs/var/tmp" -mindepth 1 -delete
+ fi
+ # Delete package pacman related files.
+ find "${work_dir}" \( -name "*.pacnew" -o -name "*.pacsave" -o -name "*.pacorig" \) -delete
+ _msg_info "Done!"
+}
+
+# Makes a filesystem from a source directory.
+_mkairootfs () {
+ if [[ ! -e "${work_dir}/airootfs" ]]; then
+ _msg_error "The path '${work_dir}/airootfs' does not exist" 1
+ fi
+
+ _msg_info "Creating ext4 image of 32GiB..."
+ truncate -s 32G "${work_dir}/airootfs.img"
+ local _qflag=""
+ if [[ ${quiet} == "y" ]]; then
+ _qflag="-q"
+ fi
+ mkfs.ext4 ${_qflag} -O ^has_journal,^resize_inode -E lazy_itable_init=0 -m 0 -F "${work_dir}/airootfs.img"
+ tune2fs -c 0 -i 0 "${work_dir}/airootfs.img" &> /dev/null
+ _msg_info "Done!"
+ _mount_airootfs
+ _msg_info "Copying '${work_dir}/airootfs/' to '${work_dir}/mnt/airootfs/'..."
+ cp -aT "${work_dir}/airootfs/" "${work_dir}/mnt/airootfs/"
+ _msg_info "Done!"
+ _umount_airootfs
+ mkdir -p "${work_dir}/iso/${install_dir}/${arch}"
+ _msg_info "Creating SquashFS image, this may take some time..."
+ if [[ "${quiet}" = "y" ]]; then
+ mksquashfs "${work_dir}/airootfs.img" "${work_dir}/iso/${install_dir}/${arch}/airootfs.sfs" -noappend -comp "${sfs_comp}" -no-progress &> /dev/null
+ else
+ mksquashfs "${work_dir}/airootfs.img" "${work_dir}/iso/${install_dir}/${arch}/airootfs.sfs" -noappend -comp "${sfs_comp}" -no-progress
+ fi
+ _msg_info "Done!"
+ rm ${work_dir}/airootfs.img
+}
+
+_mkchecksum () {
+ _msg_info "Creating checksum file for self-test..."
+ cd "${work_dir}/iso/${install_dir}/${arch}"
+ md5sum airootfs.sfs > airootfs.md5
+ cd ${OLDPWD}
+ _msg_info "Done!"
+}
+
+command_pkglist () {
+ _show_config pkglist
+
+ _msg_info "Creating a list of installed packages on live-enviroment..."
+ pacman -Sl -r "${work_dir}/airootfs" --config "${pacman_conf}" | \
+ awk '/\[installed\]$/ {print $1 "/" $2 "-" $3}' > \
+ "${work_dir}/iso/${install_dir}/pkglist.${arch}.txt"
+ _msg_info "Done!"
+
+}
+
+# Create an ISO9660 filesystem from "iso" directory.
+command_iso () {
+ local _iso_efi_boot_args=""
+
+ if [[ ! -f "${work_dir}/iso/isolinux/isolinux.bin" ]]; then
+ _msg_error "The file '${work_dir}/iso/isolinux/isolinux.bin' does not exist." 1
+ fi
+ if [[ ! -f "${work_dir}/iso/isolinux/isohdpfx.bin" ]]; then
+ _msg_error "The file '${work_dir}/iso/isolinux/isohdpfx.bin' does not exist." 1
+ fi
+
+ # If exists, add an EFI "El Torito" boot image (FAT filesystem) to ISO-9660 image.
+ if [[ -f "${work_dir}/iso/EFI/archiso/efiboot.img" ]]; then
+ _iso_efi_boot_args="-eltorito-alt-boot
+ -e EFI/archiso/efiboot.img
+ -no-emul-boot
+ -isohybrid-gpt-basdat"
+ fi
+
+ _show_config iso
+
+ mkdir -p ${out_dir}
+ _msg_info "Creating ISO image..."
+ local _qflag=""
+ if [[ ${quiet} == "y" ]]; then
+ _qflag="-quiet"
+ fi
+ xorriso -as mkisofs ${_qflag} \
+ -iso-level 3 \
+ -full-iso9660-filenames \
+ -volid "${iso_label}" \
+ -appid "${iso_application}" \
+ -publisher "${iso_publisher}" \
+ -preparer "prepared by mkarchiso" \
+ -eltorito-boot isolinux/isolinux.bin \
+ -eltorito-catalog isolinux/boot.cat \
+ -no-emul-boot -boot-load-size 4 -boot-info-table \
+ -isohybrid-mbr ${work_dir}/iso/isolinux/isohdpfx.bin \
+ ${_iso_efi_boot_args} \
+ -output "${out_dir}/${img_name}" \
+ "${work_dir}/iso/"
+ _msg_info "Done! | $(ls -sh ${out_dir}/${img_name})"
+}
+
+# create airootfs.sfs filesystem, and push it in "iso" directory.
+command_prepare () {
+ _show_config prepare
+
+ _cleanup
+ _mkairootfs
+ _mkchecksum
+}
+
+# Install packages on airootfs.
+# A basic check to avoid double execution/reinstallation is done via hashing package names.
+command_install () {
+ if [[ ! -f "${pacman_conf}" ]]; then
+ _msg_error "Pacman config file '${pacman_conf}' does not exist" 1
+ fi
+
+ #trim spaces
+ pkg_list="$(echo ${pkg_list})"
+
+ if [[ -z ${pkg_list} ]]; then
+ _msg_error "Packages must be specified" 0
+ _usage 1
+ fi
+
+ _show_config install
+
+ _pacman "${pkg_list}"
+}
+
+command_init() {
+ _show_config init
+ _chroot_init
+}
+
+command_run() {
+ _show_config run
+ _chroot_run
+}
+
+if [[ ${EUID} -ne 0 ]]; then
+ _msg_error "This script must be run as root." 1
+fi
+
+while getopts 'p:r:C:L:P:A:D:w:o:c:vh' arg; do
+ case "${arg}" in
+ p) pkg_list="${pkg_list} ${OPTARG}" ;;
+ r) run_cmd="${OPTARG}" ;;
+ C) pacman_conf="${OPTARG}" ;;
+ L) iso_label="${OPTARG}" ;;
+ P) iso_publisher="${OPTARG}" ;;
+ A) iso_application="${OPTARG}" ;;
+ D) install_dir="${OPTARG}" ;;
+ w) work_dir="${OPTARG}" ;;
+ o) out_dir="${OPTARG}" ;;
+ c) sfs_comp="${OPTARG}" ;;
+ v) quiet="n" ;;
+ h|?) _usage 0 ;;
+ *)
+ _msg_error "Invalid argument '${arg}'" 0
+ _usage 1
+ ;;
+ esac
+done
+
+shift $((OPTIND - 1))
+
+if [[ $# -lt 1 ]]; then
+ _msg_error "No command specified" 0
+ _usage 1
+fi
+command_name="${1}"
+
+case "${command_name}" in
+ init)
+ command_init
+ ;;
+ install)
+ command_install
+ ;;
+ run)
+ command_run
+ ;;
+ prepare)
+ command_prepare
+ ;;
+ pkglist)
+ command_pkglist
+ ;;
+ iso)
+ if [[ $# -lt 2 ]]; then
+ _msg_error "No image specified" 0
+ _usage 1
+ fi
+ img_name="${2}"
+ command_iso
+ ;;
+ *)
+ _msg_error "Invalid command name '${command_name}'" 0
+ _usage 1
+ ;;
+esac
+
+# vim:ts=4:sw=4:et:
diff --git a/build_tools/archiso-19/docs/README.altbootmethods b/build_tools/archiso-19/docs/README.altbootmethods
new file mode 100644
index 0000000..3c07e03
--- /dev/null
+++ b/build_tools/archiso-19/docs/README.altbootmethods
@@ -0,0 +1,125 @@
+INDEX
+-----
+
+* Alternative boot methods (configs/releng)
+ * ISO in loopback mode
+ * ISO in memdisk mode
+ * Network booting (PXE) [first stage]
+ * DHCP + TFTP
+ * DHCP + HTTP
+ * HTTP/NFS/NBD [second stage]
+
+
+
+*** Alternative boot methods (configs/releng)
+
+ISO images names consist of: archlinux-<YYYY>.<MM>.<DD>-dual.iso
+
+Where:
+ <YYYY> Year
+ <MM> Month
+ <DD> Day
+
+
+** ISO in loopback mode.
+
+Note: Described method is for using with GRUB2.
+ GRUB2 is installed on target media and archlinux-<YYYY>.<MM>.<DD>-dual.iso
+ is at path <TARGET-PATH> on disk <D> and partition <P>,
+ where filesystem is labeled as <TARGET-FS-LABEL>.
+
+menuentry "Arch Linux (x86_64)" {
+ set isofile="/<TARGET-PATH>/archlinux-<YYYY>.<MM>.<DD>-dual.iso"
+ loopback loop (hd<D>,<P>)$isofile
+ linux (loop)/arch/boot/x86_64/vmlinuz archisolabel=<FS-LABEL> img_label=<TARGET-FS-LABEL> img_loop=$isofile
+ initrd (loop)/arch/boot/x86_64/archiso.img
+}
+
+menuentry "Arch Linux (i686)" {
+ set isofile="/<TARGET-PATH>/archlinux-<YYYY>.<MM>.<DD>-dual.iso"
+ loopback loop (hd<D>,<P>)$isofile
+ linux (loop)/arch/boot/i686/vmlinuz archisolabel=<FS-LABEL> img_label=<TARGET-FS-LABEL> img_loop=$isofile
+ initrd (loop)/arch/boot/i686/archiso.img
+}
+
+
+** ISO in memdisk mode.
+
+Note: Described method is for using with SYSLINUX. Anyway MEMDISK from SYSLINUX can work
+ with other bootloaders.
+ SYSLINUX is installed on target media and archlinux-<YYYY>.<MM>.<DD>-dual.iso
+ is at path <TARGET-PATH>.
+ On 32-bit systems, is needed to pass vmalloc=nnM to the kernel, where nn is the size
+ of the ISO image plus 64 MiB (or 128 MiB).
+
+
+LABEL arch_x64
+ LINUX memdisk
+ INITRD /<TARGET-PATH>/archlinux-<YYYY>.<MM>.<DD>-dual.iso
+ APPEND iso
+
+LABEL arch_x32
+ LINUX memdisk
+ INITRD /<TARGET-PATH>/archlinux-<YYYY>.<MM>.<DD>-dual.iso
+ APPEND iso
+
+
+** Network booting (PXE).
+
+All ISOs are ready to act as PXE server, some manual steps are needed
+to setup the desired PXE boot mode.
+Alternatively it is possible to use an existing PXE server following the same logic.
+Note: Setup network first, adjust IP adresses, and respect all slashes "/".
+
+First stage is for loading kernel and initramfs via PXE, two methods described here:
+
+* DHCP + TFTP
+
+Note: All NIC firmwares should support this.
+
+# dnsmasq --port=0 \
+ --enable-tftp \
+ --tftp-root=/run/archiso/bootmnt \
+ --dhcp-range=192.168.0.2,192.168.0.254,86400 \
+ --dhcp-boot=/arch/boot/syslinux/lpxelinux.0 \
+ --dhcp-option-force=209,boot/syslinux/archiso.cfg \
+ --dhcp-option-force=210,/arch/
+
+* DHCP + HTTP
+
+Note: Not all NIC firmware supports HTTP and DNS (if domain name is used).
+ At least this works with iPXE and gPXE.
+
+# dnsmasq --port=0 \
+ --dhcp-range=192.168.0.2,192.168.0.254,86400 \
+ --dhcp-boot=http://192.168.0.7/arch/boot/syslinux/lpxelinux.0 \
+ --dhcp-option-force=209,boot/syslinux/archiso.cfg \
+ --dhcp-option-force=210,http://192.168.0.7/arch/
+
+
+Once the kernel is started from PXE, SquashFS files and other misc files
+inside "arch" directory must be loaded (second stage). One of the following
+methods can be used to serve the rest of live-medium.
+
+* HTTP
+
+# darkhttpd /run/archiso/bootmnt
+
+
+* NFS
+
+# echo "/run/archiso/bootmnt 192.168.0.*(ro,no_subtree_check,no_root_squash)" >> /etc/exports
+# systemctl start nfs-server.service
+
+
+* NBD
+
+Note: Adjust ARCH_201408 as needed.
+
+# cat << EOF > /tmp/nbd-server.conf
+[generic]
+[archiso]
+ readonly = true
+ exportname = /dev/disk/by-label/ARCH_201408
+EOF
+# nbd-server -C /tmp/nbd-server.conf
diff --git a/build_tools/archiso-19/docs/README.bootparams b/build_tools/archiso-19/docs/README.bootparams
new file mode 100644
index 0000000..08198cb
--- /dev/null
+++ b/build_tools/archiso-19/docs/README.bootparams
@@ -0,0 +1,138 @@
+INDEX
+-----
+
+* Boot parameters (initramfs stage)
+ * hooks/archiso
+ * hooks/archiso_pxe_common
+ * hooks/archiso_pxe_nbd
+ * hooks/archiso_pxe_http
+ * hooks/archiso_pxe_nfs
+ * hooks/archiso_loop_mnt
+
+* Boot parameters (configs/releng)
+ * scripts/choose-mirror
+
+
+*** Boot parameters (initramfs stage)
+
+** hooks/archiso
+
+* archisolabel= Set the filesystem label where archiso files reside.
+ Default: (unset)
+* archisodevice= Set the device node where archiso medium is located.
+ Default: "/dev/disk/by-label/${archisolabel}"
+* archisobasedir= Set the base directory where all files reside.
+ Default: "arch"
+* copytoram= If set to "y" or just "copytoram" without arguments,
+ all SquashFS are copied to "RAM".
+ Default: (unset)
+* checksum= If set to "y" or just "checksum" without arguments,
+ performs a self-test of all files inside ${install_dir},
+ and continue booting if ok.
+ Default: (unset)
+* cow_label= Set the filesystem label where COW (dm-snapshot)
+ files must be stored.
+ Default: (unset)
+* cow_device= Set the device node where COW (dm-snapshot) files
+ must be stored.
+ Default: (unset) or "/dev/disk/by-label/${cow_label}"
+* cow_directory= Set a directory inside ${cow_device}.
+ Default: "/persistent_${archisolabel}/${arch}"
+* cow_persistent= Set if snapshots are persistent "P" or non-persistent "N".
+ Default: "N" (if no ${cow_device} is used) otherwise "P".
+* cowspace_size= Set the size of tmpfs /cowspace. This space is used for
+ Copy-On-Write files of dm-snapshot.
+ Size is in bytes (suffix with "k", "m" and "g") or
+ in percentage of available RAM.
+ Default: "75%"
+* cowfile_size= Set the size for all files to be used as COW (dm-snapshot),
+ in percentage of the ro-device.fs file. This is mostly useful
+ when cow_device= is used and filesystem does not support
+ sparse files (ie VFAT).
+ Default: "100%"
+* copytoram_size= Set the size of tmpfs. This space is used for
+ copy of all SquashFS images used, if copytoram=y.
+ Size is in bytes (suffix with "k", "m" and "g") or
+ in percentage of available RAM.
+ Default: "75%"
+* dm_snap_prefix= Set a prefix for device-mapper snapshot node names.
+ Default: "arch"
+* arch= Force an architecture type (i686 | x86_64).
+ Do not set it for normal operations.
+ Default: (architecture of running kernel)
+
+
+** hooks/archiso_pxe_common
+
+* ip= This parameter is setup automatically by PXELINUX
+ when option "SYSAPPEND" is set to 1 or 2 in config.
+ ip=<client-ip>:<boot-server-ip>:<gw-ip>:<netmask>
+ Default: (set via PXE server)
+* BOOTIF= This parameter is setup automatically by PXELINUX
+ when option "SYSAPPEND" is set to 2 or 3 in config.
+ BOOTIF=<hardware-address-of-boot-interface>
+ Default: (set via PXELINUX)
+* copy_resolvconf= Copy /etc/resolv.conf from initramfs to live-enviroment.
+ Set to "n" to skip them.
+ Default: "y"
+
+
+** hooks/archiso_pxe_nbd
+
+* archiso_nbd_name= Set NBD export name used by the server.
+ Default: archiso
+* archiso_nbd_srv= Set an IP address where NBD reside.
+ If ${pxeserver} is used, PXE IP will be used.
+ Default: (unset)
+
+
+** hooks/archiso_pxe_http
+
+* archiso_http_srv= Set an HTTP URL (must end with /) where ${archisobasedir}
+ is found with all *.sfs files.
+ In the IP/domain part if ${pxeserver} is used, use PXE IP.
+ Default: (unset)
+* archiso_http_spc= Set the size of tmpfs where *.sfs files are downloaded.
+ Default: "75%"
+
+
+** hooks/archiso_pxe_nfs
+
+* archiso_nfs_srv= Set the NFS-IP:/path of the server
+ In the IP part if ${pxeserver} is used, PXE IP will be used.
+ Default: (unset)
+* archiso_nfs_opt= Set NFS mount options separated by comma.
+ Default: (unset, see below)
+ These are the implicit options:
+ port = as given by server portmap daemon
+ rsize = 1024
+ wsize = 1024
+ timeo = 7
+ retrans = 3
+ acregmin = 3
+ acregmax = 60
+ acdirmin = 30
+ acdirmax = 60
+ flags = hard, nointr, noposix, cto, ac
+
+
+** hooks/archiso_loop_mnt
+
+* img_label= Set the filesystem label where archiso-image.iso.
+ Default: (unset)
+* img_dev= Device where archiso-image.iso reside.
+ Default: (unset) or "/dev/disk/by-label/${img_label}"
+* img_loop= Full path where archiso-image.iso is located on ${img_dev}
+ Default: (unset)
+
+
+
+*** Boot parameters (configs/releng)
+
+** scripts/choose-mirror
+
+* mirror= Takes a mirror URL and creates a new mirrorlist.
+ When setting mirror=auto, the mirror is taken from
+ archiso_http_srv= in order to keep using the mirror
+ selected in the netboot menu.
+ Default: (unset)
diff --git a/build_tools/archiso-19/docs/README.build b/build_tools/archiso-19/docs/README.build
new file mode 100644
index 0000000..1c047ea
--- /dev/null
+++ b/build_tools/archiso-19/docs/README.build
@@ -0,0 +1,67 @@
+INDEX
+-----
+
+* Build requirements
+* Building the most basic Arch Linux live media. (configs/baseline)
+* Building official Arch Linux live media. (configs/releng)
+
+
+
+*** Build requirements
+
+** For mkarchiso script needs these packages (build host):
+ + arch-install-scripts for pacstrap/arch-chroot
+ + squashfs-tools for mksquashfs
+ + libisoburn for xorriso
+ + btrfs-progs for mkfs.btrfs (optional)
+
+** For configs/releng build.sh needs theses packages (build host):
+ + dosfstools for mkfs.vfat
+ + lynx for fetching the latest installation guide
+
+** For these hooks needs these packages (on target airootfs)
+* archiso
+ + (none)
+* archiso_loop_mnt
+ + (none)
+* archiso_pxe_common
+ + mkinitcpio-nfs-utils for ipconfig
+* archiso_pxe_nbd
+ + nbd for nbd-client
+* archiso_pxe_http
+ + curl for curl
+* archiso_pxe_nfs
+ + mkinitcpio-nfs-utils for nfsmount
+* archiso_shutdown
+ + (none)
+
+
+*** Building the most basic Arch Linux live media. (configs/baseline)
+
+* Install needed packages.
+ # pacman -S git make arch-install-scripts squashfs-tools libisoburn --needed
+
+* Install archiso.
+ # git clone git://projects.archlinux.org/archiso.git
+ # make -C archiso install
+
+* Build a basic iso.
+ # /usr/share/archiso/configs/baseline/build.sh
+
+Note: If you want to customize, just see the configs/releng directory which is
+used to build official images with much more things.
+
+
+*** Building official Arch Linux live media. (configs/releng)
+
+* Install needed packages.
+ # pacman -S git make arch-install-scripts squashfs-tools libisoburn dosfstools lynx --needed
+
+* Install archiso.
+ # git clone git://projects.archlinux.org/archiso.git
+ # make -C archiso install
+
+* Build them!
+ # /usr/share/archiso/configs/releng/build.sh
+
+Note: See build.sh -h for more options. This only runs on x86_64.
diff --git a/build_tools/archiso-19/docs/README.knownissues b/build_tools/archiso-19/docs/README.knownissues
new file mode 100644
index 0000000..3a94764
--- /dev/null
+++ b/build_tools/archiso-19/docs/README.knownissues
@@ -0,0 +1,12 @@
+*** Know issues
+
+** (1) On shutdown lots of messages from systemd like:
+
+ "Could not unmount /run/archiso/<ABC>: Device or resource busy"
+ "Could not delete loopback /dev/loop<N>: Device or resource busy"
+ This is not a real issue since, all mounted filesystem, loopback devices
+ and device mapper devices made by archiso will be "free" on "shutdown tmpfs"
+ (A.K.A deinitramfs), build at initramfs by [archiso_shutdown] initcpio hook.
+ Proper shutdown is mostly important when persistent is used.
+
+
diff --git a/build_tools/archiso-19/docs/README.transfer b/build_tools/archiso-19/docs/README.transfer
new file mode 100644
index 0000000..ade083a
--- /dev/null
+++ b/build_tools/archiso-19/docs/README.transfer
@@ -0,0 +1,133 @@
+INDEX
+-----
+
+* Transfer ISO file to target medium (configs/releng)
+ * To -> CD / DVD / BD
+ * To -> USB-key / SD / HDD / SSD
+ * PC-BIOS (MBR)
+ * PC-BIOS (ISOHYBRID-MBR)
+ * PC-EFI (GPT) [x86_64 only]
+ * PC-EFI (ISOHYBRID-GPT) [x86_64 only]
+
+
+
+*** Transfer ISO image to target medium (configs/releng)
+
+ISO images names consist of: archlinux-<YYYY>.<MM>.<DD>-dual.iso
+
+Where:
+ <YYYY> Year
+ <MM> Month
+ <DD> Day
+
+
+** To -> CD / DVD / BD
+
+Note: All ISO images are booteable on a PC-BIOS via "El Torito" in no-emulation mode,
+ All x86_64 ISO images are booteable on a PC-EFI via "El Torito" in no-emulation mode.
+
+Nomeclature:
+ <B> scsibus number
+ <T> target number
+ <L> lun number
+ (Note: see cdrecord -scanbus, for these numbers)
+
+
+1) Write it directly using your favorite recording program.
+# cdrecord dev=<B>,<T>,<L> -dao archlinux-<YYYY>.<MM>.<DD>-dual.iso
+
+
+** To -> USB Flash Drive (USB-key) / Memory card (SD) /
+ Hard-Disk Drive (HDD) / Solid-State Drive (SSD)
+
+Note: These steps are the general workflow, you can skip some of them,
+ using another filesystem if your bootloader supports it,
+ installing to another directory than "arch/" or using more than
+ one partition. Just ensure that main boot params options
+ (archisolabel= and archisobasedir=) are set correctly according to your setup.
+
+Nomeclature:
+<DEV-TARGET>: Device node of the drive where ISO contents should be copied
+ (example: /dev/sdx)
+<DEV-TARGET-N>: Device node of the partition on <DEV-TARGET>
+ (example: /dev/sdx1)
+<MNT-TARGET-N>: Mount point path where <DEV-TARGET-N> is mounted
+ (example: /mnt/sdx/1)
+<ISO-SOURCE>: Path to the ISO file archlinux-<YYYY>.<MM>.<DD>-dual.iso
+ (example: ~/archlinux-2012.07.22-dual.iso)
+<FS-LABEL>: Represents the filesystem label of the <ISO-SOURCE>
+ (example: ARCH_201302)
+
+
+* PC-BIOS (MBR):
+
+Note: Using here a MBR partition mode as example, but GPT should also works
+ if machine firmware is not broken.
+ Just ensure that partition is set with attribute "2: legacy BIOS bootable"
+ and use gptmbr.bin instead of mbr.bin for syslinux.
+
+1) Create one partition entry in MBR and mark it as "active" (booteable).
+Note: Type "b" for FAT32, "83" for EXTFS or "7" for NTFS.
+# fdisk <DEV-TARGET>
+
+2) Create a FAT32, EXTFS or NTFS filesystem on such partition and setup a label.
+Note: COW is not supported on NTFS.
+# mkfs.vfat -F 32 -n <FS-LABEL> <DEV-TARGET-N>
+# mkfs.ext4 -L <FS-LABEL> <DEV-TARGET-N>
+# mkfs.ntfs -L <FS-LABEL> <DEV-TARGET-N>
+
+3) Mount target filesystem.
+# mount <DEV-TARGET-N> <MNT-TARGET-N>
+
+4) Extract ISO image on target filesystem.
+# bsdtar -x --exclude=isolinux/ --exclude=EFI/ --exclude=loader/ -f <ISO-SOURCE> -C <MNT-TARGET-N>
+
+5) Install syslinux bootloader on target filesystem.
+# extlinux -i <MNT-TARGET-N>/arch/boot/syslinux
+
+6) Unmount target filesystem.
+# umount <MNT-TARGET-N>
+
+7) Install syslinux MBR boot code on target drive.
+# dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/mbr.bin of=<DEV-TARGET>
+
+
+* PC-BIOS (ISOHYBRID-MBR):
+
+Note: This method is the most easily, quick and dirty, but is the most limited
+ if you want to use your target medium for other purposes.
+ If using this does not work, use PC-BIOS (MBR) method instead.
+
+1) Dump ISO file to target medium.
+# dd if=<ISO-SOURCE> of=<DEV-TARGET>
+
+
+* PC-EFI (GPT) [x86_64 only]
+
+Note: Using here a GPT partition mode as example, but MBR should also works
+ if machine firmware is not broken.
+
+1) Create one partition entry in GPT (of type "ef00")
+# gdisk <DEV-TARGET>
+
+2) Create a FAT32 filesystem on such partition and setup a label.
+# mkfs.vfat -F 32 -n <FS-LABEL> <DEV-TARGET-N>
+
+3) Mount target filesystem.
+# mount <DEV-TARGET-N> <MNT-TARGET-N>
+
+4) Extract ISO image on target filesystem.
+# bsdtar -x --exclude=isolinux/ --exclude=EFI/archiso/ --exclude=arch/boot/syslinux/ -f <ISO-SOURCE> -C <MNT-TARGET-N>
+
+5) Unmount target filesystem.
+# umount <MNT-TARGET-N>
+
+
+* PC-EFI (ISOHYBRID-GPT) [x86_64 only]
+
+Note: This method is the most easily, quick and dirty, but is the most limited
+ if you want to use your target medium for other purposes.
+ If using this does not work, use PC-EFI (GPT) method instead.
+
+1) Dump ISO file to target medium.
+# dd if=<ISO-SOURCE> of=<DEV-TARGET>
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/fstab b/build_tools/archiso-19/mythvantage/airootfs/etc/fstab
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/fstab
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/hostname b/build_tools/archiso-19/mythvantage/airootfs/etc/hostname
new file mode 100644
index 0000000..a616f6e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/hostname
@@ -0,0 +1 @@
+apheleia
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/locale.conf b/build_tools/archiso-19/mythvantage/airootfs/etc/locale.conf
new file mode 100644
index 0000000..01ec548
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/locale.conf
@@ -0,0 +1 @@
+LANG=en_US.UTF-8
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/machine-id b/build_tools/archiso-19/mythvantage/airootfs/etc/machine-id
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/machine-id
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/pam.d/su b/build_tools/archiso-19/mythvantage/airootfs/etc/pam.d/su
new file mode 100644
index 0000000..a291042
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/pam.d/su
@@ -0,0 +1,6 @@
+#%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/build_tools/archiso-19/mythvantage/airootfs/etc/sudoers.d/g_wheel b/build_tools/archiso-19/mythvantage/airootfs/etc/sudoers.d/g_wheel
new file mode 100644
index 0000000..8c45359
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/sudoers.d/g_wheel
@@ -0,0 +1 @@
+%wheel ALL=(ALL) NOPASSWD: ALL
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/choose-mirror.service b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/choose-mirror.service
new file mode 100644
index 0000000..1e4d771
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/choose-mirror.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Choose mirror from the kernel command line
+ConditionKernelCommandLine=mirror
+
+[Service]
+Type=oneshot
+ExecStart=/etc/systemd/scripts/choose-mirror
+
+[Install]
+WantedBy=multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount
new file mode 100644
index 0000000..4eab551
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount
@@ -0,0 +1,8 @@
+[Unit]
+Description=Temporary /etc/pacman.d/gnupg directory
+
+[Mount]
+What=tmpfs
+Where=/etc/pacman.d/gnupg
+Type=tmpfs
+Options=mode=0755
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf
new file mode 100644
index 0000000..14e0dae
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf
@@ -0,0 +1,4 @@
+[Service]
+Type=idle
+ExecStart=
+ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/linhes-install.service b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/linhes-install.service
new file mode 100644
index 0000000..c517e39
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/linhes-install.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Start LinHES installer at display
+
+[Service]
+Type=oneshot
+ExecStart=/root/linhes_install/startx
+ExecStop=bash /root/linhres_install/all_stop.sh
+RemainAfterExit=yes
+
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/pacman-init.service b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/pacman-init.service
new file mode 100644
index 0000000..23b8144
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/systemd/system/pacman-init.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Initializes Pacman keyring
+Wants=haveged.service
+After=haveged.service
+Requires=etc-pacman.d-gnupg.mount
+After=etc-pacman.d-gnupg.mount
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/pacman-key --init
+ExecStart=/usr/bin/pacman-key --populate archlinux
+
+[Install]
+WantedBy=multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/airootfs/etc/udev/rules.d/81-dhcpcd.rules b/build_tools/archiso-19/mythvantage/airootfs/etc/udev/rules.d/81-dhcpcd.rules
new file mode 100644
index 0000000..1c4053c
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/etc/udev/rules.d/81-dhcpcd.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="en*|eth*", ENV{SYSTEMD_WANTS}="dhcpcd@$name.service"
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/.automated_script.sh b/build_tools/archiso-19/mythvantage/airootfs/root/.automated_script.sh
new file mode 100755
index 0000000..bff09dc
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/.automated_script.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+script_cmdline ()
+{
+ local param
+ for param in $(< /proc/cmdline); do
+ case "${param}" in
+ script=*) echo "${param#*=}" ; return 0 ;;
+ esac
+ done
+}
+
+automated_script ()
+{
+ local script rt
+ script="$(script_cmdline)"
+ if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
+ if [[ "${script}" =~ ^http:// || "${script}" =~ ^ftp:// ]]; then
+ wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null
+ rt=$?
+ else
+ cp "${script}" /tmp/startup_script
+ rt=$?
+ fi
+ if [[ ${rt} -eq 0 ]]; then
+ chmod +x /tmp/startup_script
+ /tmp/startup_script
+ fi
+ fi
+}
+
+if [[ $(tty) == "/dev/tty1" ]]; then
+ #automated_script
+ touch /tmp/I_raN
+ /root/startx
+fi
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/.bash_profile b/build_tools/archiso-19/mythvantage/airootfs/root/.bash_profile
new file mode 100644
index 0000000..e78dd98
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/.bash_profile
@@ -0,0 +1,7 @@
+#!/bin/bash
+if [[ $(tty) == "/dev/tty1" ]]; then
+ #automated_script
+ /root/linhes_install/pre_install.sh
+fi
+
+
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/delete_me/menu.lst b/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/delete_me/menu.lst
new file mode 100755
index 0000000..0ecc2a7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/delete_me/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M quiet vga=0x314 splash=silent,theme:linhes console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title LinHES-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x314 splash=silent,theme:linhes console=tty1 nox
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/delete_me/rc.conf b/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/delete_me/rc.conf
new file mode 100755
index 0000000..43a275f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/delete_me/rc.conf
@@ -0,0 +1,71 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf-8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="yes"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="!soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="!soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST_=($ALSABLACKLIST !snd-pcsp !nouveau)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=($MOD_BLACKLIST_)
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(fbsplash !syslog-ng !hotplug !pcmcia !network !mysqld dbus avahi-daemon)
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/go.sh b/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/go.sh
new file mode 100755
index 0000000..2e6b1d4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/go.sh
@@ -0,0 +1,41 @@
+#!/bin/bash
+#This script is run after data is copied, but before configuration.
+
+. /usr/MythVantage/bin/mv_config.py
+
+PD="/root/.post_process"
+pacman -S --force --noconfirm runit-scripts
+
+HDIR=`dirname $MYTHHOME`
+mkdir -p $HDIR
+useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv
+
+
+
+chown -R mythtv.mythtv $MYTHHOME
+
+#creating /myth for live cd
+mkdir -p $DATAMOUNT
+create_media_dirs.sh $DATAMOUNT
+chown -R mythtv.mythtv $DATAMOUNT/media
+
+
+
+python2 /root/.post_process/locale.py
+echo "generating locales"
+/usr/sbin/locale-gen
+
+rm -f /etc/issue
+ln -s /etc/LinHES-release /etc/issue
+
+#remove files
+#rm -f /root/LinHES-install.sh
+#rm -f /root/startx
+rm -f /root/.directory
+rm -rf /root/linhes_install
+rm -f /etc/systemd/system/linhes-install.service
+
+#cp -rvpf /.post_process/home/mythtv /home/
+#cp -rvpf /.post_process/home/mythtv/.fluxbox /root
+#cp -vpf /.post_process/nouveau.conf /etc/modprobe.d/nouveau.conf
+mv $PD $PD.old
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/locale.py b/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/locale.py
new file mode 100644
index 0000000..70cfcbd
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/.post_process/locale.py
@@ -0,0 +1,23 @@
+def genlocale():
+ #logging.info("Generating locales")
+ locale_list=[ "en_US ISO-8859-1", "en_US.UTF-8 UTF-8" , "de_DE.UTF-8", "da_DK.utf8", "en_DK.utf8", "it_IT.utf8", "de_DE.UTF-8"]
+ #locale_list=['UTF-8', 'en_US ISO-8859-1']
+
+ localefile="/etc/locale.gen"
+ f = open(localefile)
+ lines = f.readlines()
+ f.close()
+
+ f = open(localefile,'w')
+
+ for line in lines:
+ outline = line
+ for locale in locale_list:
+ #print locale, line
+ if locale in line:
+ outline = line.replace('#','')
+ f.write(outline)
+
+ f.close
+
+genlocale()
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/customize_airootfs.sh b/build_tools/archiso-19/mythvantage/airootfs/root/customize_airootfs.sh
new file mode 100755
index 0000000..0845424
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/customize_airootfs.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+set -e -u
+
+sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
+locale-gen
+
+ln -sf /usr/share/zoneinfo/UTC /etc/localtime
+
+#usermod -s /usr/bin/zsh root
+#cp -aT /etc/skel/ /root/
+chmod 700 /root
+
+
+chmod 750 /etc/sudoers.d
+chmod 440 /etc/sudoers.d/g_wheel
+
+systemctl set-default multi-user.target
+
+#LinHES
+#add symlink
+
+if [ -e /etc/udev/rules.d/80-net-name-slot.rules ]
+then
+ rm -f /etc/udev/rules.d/80-net-name-slot.rules
+fi
+
+ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
+
+#remove tmp mount as tmpfs
+systemctl mask tmp.mount
+systemctl mask dhcpcd.service
+systemctl mask dhcpcd\@.service
+
+
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/LinHES-install.sh b/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/LinHES-install.sh
new file mode 100755
index 0000000..2b0cdb2
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/LinHES-install.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+#redirect stderr to stdout, then rediret stdout to file
+. /etc/profile
+exec 2>&1
+exec > /tmp/mythvantage_install.log
+#/usr/bin/nvidia-settings -a InitialPixmapPlacement=2
+#keylaunch &
+#/usr/bin/tilda &
+#/usr/X11R6/bin/unclutter -root -idle 0 -jitter 400 -noevents &
+export MALLOC_CHECK_=0
+
+WM="e16 -P /usr/share/wm_data/e16_config_dir/"
+$WM &
+pid=$!
+
+xset s off
+xset -dpms
+xhost +
+xdotool mousemove 0 0
+
+cp -f /etc/keylaunchrc /root/.keylaunchrc
+/usr/bin/keylaunch &
+
+
+CMDLINE=$(cat /proc/cmdline)
+echo $CMDLINE |grep -q nfsroot
+NFSROOT=$?
+echo $CMDLINE |grep -q clean_upgrade
+if [ $? = 0 ]
+then
+ export CLEAN_UPGRADE=YES
+else
+ export CLEAN_UPGRADE=NO
+fi
+
+#show the readme
+MythVantage -r
+
+if [ x$NFSROOT = x1 ]
+then
+ unbuffer MythVantage -L &
+else
+ NETBOOT=YES MythVantage &
+fi
+
+
+wait $pid
+
+
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/all_stop.sh b/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/all_stop.sh
new file mode 100644
index 0000000..6d86635
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/all_stop.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+killall -9 X
+killall -9 xinit
+killall -9 e16
+killall -9 MythVantage
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/pre_install.sh b/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/pre_install.sh
new file mode 100755
index 0000000..83224b7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/pre_install.sh
@@ -0,0 +1,120 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/profile
+. ${MV_ROOT}/bin/install_functions.sh
+umount /tmp
+clear
+
+
+ln -s /var-lib-pacman/sync /var/lib/pacman/sync
+
+function mysql_check {
+ mysql -e "show databases;" 2>/dev/null >/dev/null
+ return $?
+}
+
+function mythconverg_check {
+ mysql mythconverg -e "describe settings;" 2>/dev/null >/dev/null
+ return $?
+}
+
+function install_db {
+ pacman --noconfirm -R mythdb-initial 2>/dev/null > /dev/null
+ pacman -S --noconfirm mythdb-initial 2>/dev/null > /dev/null
+}
+
+
+#set bootdev.txt for shutdown eject in archiso_shutdown
+mount|grep bootmnt|cut -f1 -d" " > /run/initramfs/bootdev.txt
+cp -f /usr/bin/eject /run/initramfs/usr/bin/eject
+
+#check to see if mysql is running
+stat_busy "Checking Mysql"
+ATTEMPT=0
+mysql_check && printhl " Installing the initial database" &&install_db
+mythconverg_check
+status=$?
+while [ ! $status = 0 ]
+do
+ #/etc/rc.d/mysqld start
+ systemctl start mysqld.service
+ mysqlstatus=$?
+ if [ $mysqlstatus = 0 ]
+ then
+ mysql_check && install_db
+ mythconverg_check
+ status=$?
+ else
+ ((ATTEMPT=ATTEMPT+1))
+ systemctl stop mysqld.service
+ #/etc/rc.d/mysqld stop
+ sleep 2
+ fi
+ if [ $ATTEMPT = 20 ]
+ then
+ printhl " Could not start mysql or install mythconverg within 20 attempts"
+ printhl " Aborting install"
+ exit 20
+ fi
+done
+stat_done
+
+#check network parms
+stat_busy "Checking network"
+init_network
+stat_done
+
+stat_busy "Probing network"
+request_dhcp &
+stat_done
+
+#save some cmdline options
+stat_busy "Parsing command line"
+parse_cmdline_2_db
+bootsplash_setup
+stat_done
+
+#search for remote
+stat_busy "Checking for remote"
+init_remote
+stat_done
+printhl "Finished"
+
+#creating /myth for live cd
+. /usr/MythVantage/bin/mv_config.py
+HDIR=`dirname $MYTHHOME`
+mkdir -p $HDIR
+useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv
+chown -R mythtv.mythtv $MYTHHOME
+#creating mountpoint for live cd
+mkdir -p $DATAMOUNT
+create_media_dirs.sh $DATAMOUNT
+chown -R mythtv.mythtv $DATAMOUNT/media
+
+
+
+printhl "Finished"
+systemctl start dbus
+systemctl start avahi-daemon
+
+echo $CMDLINE | grep -qi NoX
+if [ $? = 0 ]
+then
+ echo ""
+ printhl "No auto X option found"
+ # /usr/bin/chvt 2
+else
+ #/root/linhes_install/startx &
+ systemctl start linhes-install
+fi
+
+# Set up automatically logged in user
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+
diff --git a/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/startx b/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/startx
new file mode 100755
index 0000000..6503bf7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/root/linhes_install/startx
@@ -0,0 +1,35 @@
+#!/bin/bash
+. /etc/profile
+
+export USER=root
+export HOME=/root
+
+CMDLINE=$(cat /proc/cmdline)
+TEMPVAR=${CMDLINE#*ip=}
+IP=${TEMPVAR%% *}
+echo $CMDLINE |grep -q vnc
+USEVNC=$?
+
+if [ x$USEVNC = x1 ]
+then
+ RUNP=1 $MV_ROOT/bin/xconfig.sh 2>/dev/null
+ startx /root/linhes_install/LinHES-install.sh -- -logverbose 6 -allowMouseOpenFail 2>/tmp/x.log
+else
+ #VNC
+ pacman -S --force --noconfirm tigervnc
+ systemctl start dbus
+ cp -f $TEMPLATES/vnc.service /etc/avahi/services/
+ systemctl start avahi-daemon
+ cd /root
+ mkdir .vnc
+ echo 54321 |vncpasswd -f > /root/.vnc/passwd
+ chmod 500 /root/.vnc/passwd
+ rm -f /root/.vnc/xstartup 2>/dev/null
+ ln -s /root/linhes_install/LinHES-install.sh /root/.vnc/xstartup
+ vncserver
+ echo "The VNC server password is: 54321"
+ echo "Please connect to one of these ip's"
+ echo "-------------------------------------------"
+ ip addr show |grep "inet" |grep -v inet6|cut -d\/ -f1
+ echo "-------------------------------------------"
+fi
diff --git a/build_tools/archiso-19/mythvantage/airootfs/usr/bin/autologin b/build_tools/archiso-19/mythvantage/airootfs/usr/bin/autologin
new file mode 100755
index 0000000..c124f9e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/usr/bin/autologin
@@ -0,0 +1,2 @@
+#!/bin/bash
+/bin/login -f root
diff --git a/build_tools/archiso-19/mythvantage/airootfs/usr/bin/go.sh b/build_tools/archiso-19/mythvantage/airootfs/usr/bin/go.sh
new file mode 100644
index 0000000..e6222e4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/airootfs/usr/bin/go.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+/usr/MythVantage/bin/mv_install.py --rootdisk=sda --rootfs=ext3 --rootsize=5000 --datafs=ext3 --datasize=50 --datadisk=sda --swapsize=2 -c full_install
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/fstab b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/fstab
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/fstab
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/hostname b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/hostname
new file mode 100644
index 0000000..2dbe21e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/hostname
@@ -0,0 +1 @@
+archiso
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/locale.conf b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/locale.conf
new file mode 100644
index 0000000..01ec548
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/locale.conf
@@ -0,0 +1 @@
+LANG=en_US.UTF-8
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/machine-id b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/machine-id
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/machine-id
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/pam.d/su b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/pam.d/su
new file mode 100644
index 0000000..a291042
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/pam.d/su
@@ -0,0 +1,6 @@
+#%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/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/sudoers.d/g_wheel b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/sudoers.d/g_wheel
new file mode 100644
index 0000000..8c45359
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/sudoers.d/g_wheel
@@ -0,0 +1 @@
+%wheel ALL=(ALL) NOPASSWD: ALL
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/scripts/choose-mirror b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/scripts/choose-mirror
new file mode 100755
index 0000000..0ae0806
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/scripts/choose-mirror
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+get_cmdline() {
+ local param
+ for param in $(< /proc/cmdline); do
+ case "${param}" in
+ $1=*) echo "${param##*=}";
+ return 0
+ ;;
+ esac
+ done
+}
+
+mirror=$(get_cmdline mirror)
+[[ $mirror = auto ]] && mirror=$(get_cmdline archiso_http_srv)
+[[ $mirror ]] || exit 0
+
+mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.orig
+cat >/etc/pacman.d/mirrorlist << EOF
+#
+# Arch Linux repository mirrorlist
+# Generated by archiso
+#
+
+Server = ${mirror%%/}/\$repo/os/\$arch
+EOF
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/choose-mirror.service b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/choose-mirror.service
new file mode 100644
index 0000000..1e4d771
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/choose-mirror.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Choose mirror from the kernel command line
+ConditionKernelCommandLine=mirror
+
+[Service]
+Type=oneshot
+ExecStart=/etc/systemd/scripts/choose-mirror
+
+[Install]
+WantedBy=multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/etc-pacman.d-gnupg.mount b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/etc-pacman.d-gnupg.mount
new file mode 100644
index 0000000..4eab551
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/etc-pacman.d-gnupg.mount
@@ -0,0 +1,8 @@
+[Unit]
+Description=Temporary /etc/pacman.d/gnupg directory
+
+[Mount]
+What=tmpfs
+Where=/etc/pacman.d/gnupg
+Type=tmpfs
+Options=mode=0755
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/getty@tty1.service.d/autologin.conf b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/getty@tty1.service.d/autologin.conf
new file mode 100644
index 0000000..d1d8474
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/getty@tty1.service.d/autologin.conf
@@ -0,0 +1,3 @@
+[Service]
+ExecStart=
+ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/pacman-init.service b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/pacman-init.service
new file mode 100644
index 0000000..23b8144
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/systemd/system/pacman-init.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Initializes Pacman keyring
+Wants=haveged.service
+After=haveged.service
+Requires=etc-pacman.d-gnupg.mount
+After=etc-pacman.d-gnupg.mount
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/pacman-key --init
+ExecStart=/usr/bin/pacman-key --populate archlinux
+
+[Install]
+WantedBy=multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/udev/rules.d/81-dhcpcd.rules b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/udev/rules.d/81-dhcpcd.rules
new file mode 100644
index 0000000..1c4053c
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/etc/udev/rules.d/81-dhcpcd.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="en*|eth*", ENV{SYSTEMD_WANTS}="dhcpcd@$name.service"
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/.automated_script.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/.automated_script.sh
new file mode 100755
index 0000000..81a98a1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/.automated_script.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+script_cmdline ()
+{
+ local param
+ for param in $(< /proc/cmdline); do
+ case "${param}" in
+ script=*) echo "${param#*=}" ; return 0 ;;
+ esac
+ done
+}
+
+automated_script ()
+{
+ local script rt
+ script="$(script_cmdline)"
+ if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
+ if [[ "${script}" =~ ^http:// || "${script}" =~ ^ftp:// ]]; then
+ wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null
+ rt=$?
+ else
+ cp "${script}" /tmp/startup_script
+ rt=$?
+ fi
+ if [[ ${rt} -eq 0 ]]; then
+ chmod +x /tmp/startup_script
+ /tmp/startup_script
+ fi
+ fi
+}
+
+if [[ $(tty) == "/dev/tty1" ]]; then
+ automated_script
+fi
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/.zlogin b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/.zlogin
new file mode 100644
index 0000000..f598e43
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/.zlogin
@@ -0,0 +1 @@
+~/.automated_script.sh
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/customize_airootfs.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/customize_airootfs.sh
new file mode 100755
index 0000000..aecf7f1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/customize_airootfs.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+set -e -u
+
+sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
+locale-gen
+
+ln -sf /usr/share/zoneinfo/UTC /etc/localtime
+
+usermod -s /usr/bin/zsh root
+cp -aT /etc/skel/ /root/
+chmod 700 /root
+
+useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /usr/bin/zsh arch
+
+chmod 750 /etc/sudoers.d
+chmod 440 /etc/sudoers.d/g_wheel
+
+sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
+sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
+
+systemctl enable pacman-init.service choose-mirror.service
+systemctl set-default multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/install.txt b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/install.txt
new file mode 100644
index 0000000..3c8f171
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs.orig/root/install.txt
@@ -0,0 +1,3 @@
+View this installation guide online at
+https://wiki.archlinux.org/index.php/Installation_Guide
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/fstab b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/fstab
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/fstab
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/hostname b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/hostname
new file mode 100644
index 0000000..a616f6e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/hostname
@@ -0,0 +1 @@
+apheleia
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/locale.conf b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/locale.conf
new file mode 100644
index 0000000..01ec548
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/locale.conf
@@ -0,0 +1 @@
+LANG=en_US.UTF-8
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/machine-id b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/machine-id
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/machine-id
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/pam.d/su b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/pam.d/su
new file mode 100644
index 0000000..a291042
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/pam.d/su
@@ -0,0 +1,6 @@
+#%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/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/sudoers.d/g_wheel b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/sudoers.d/g_wheel
new file mode 100644
index 0000000..8c45359
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/sudoers.d/g_wheel
@@ -0,0 +1 @@
+%wheel ALL=(ALL) NOPASSWD: ALL
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/choose-mirror.service b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/choose-mirror.service
new file mode 100644
index 0000000..1e4d771
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/choose-mirror.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Choose mirror from the kernel command line
+ConditionKernelCommandLine=mirror
+
+[Service]
+Type=oneshot
+ExecStart=/etc/systemd/scripts/choose-mirror
+
+[Install]
+WantedBy=multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount
new file mode 100644
index 0000000..4eab551
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount
@@ -0,0 +1,8 @@
+[Unit]
+Description=Temporary /etc/pacman.d/gnupg directory
+
+[Mount]
+What=tmpfs
+Where=/etc/pacman.d/gnupg
+Type=tmpfs
+Options=mode=0755
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf
new file mode 100644
index 0000000..14e0dae
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf
@@ -0,0 +1,4 @@
+[Service]
+Type=idle
+ExecStart=
+ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/linhes-install.service b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/linhes-install.service
new file mode 100644
index 0000000..c517e39
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/linhes-install.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Start LinHES installer at display
+
+[Service]
+Type=oneshot
+ExecStart=/root/linhes_install/startx
+ExecStop=bash /root/linhres_install/all_stop.sh
+RemainAfterExit=yes
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/pacman-init.service b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/pacman-init.service
new file mode 100644
index 0000000..23b8144
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/systemd/system/pacman-init.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Initializes Pacman keyring
+Wants=haveged.service
+After=haveged.service
+Requires=etc-pacman.d-gnupg.mount
+After=etc-pacman.d-gnupg.mount
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/pacman-key --init
+ExecStart=/usr/bin/pacman-key --populate archlinux
+
+[Install]
+WantedBy=multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/udev/rules.d/81-dhcpcd.rules b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/udev/rules.d/81-dhcpcd.rules
new file mode 100644
index 0000000..1c4053c
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/etc/udev/rules.d/81-dhcpcd.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="en*|eth*", ENV{SYSTEMD_WANTS}="dhcpcd@$name.service"
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.automated_script.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.automated_script.sh
new file mode 100755
index 0000000..bff09dc
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.automated_script.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+script_cmdline ()
+{
+ local param
+ for param in $(< /proc/cmdline); do
+ case "${param}" in
+ script=*) echo "${param#*=}" ; return 0 ;;
+ esac
+ done
+}
+
+automated_script ()
+{
+ local script rt
+ script="$(script_cmdline)"
+ if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
+ if [[ "${script}" =~ ^http:// || "${script}" =~ ^ftp:// ]]; then
+ wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null
+ rt=$?
+ else
+ cp "${script}" /tmp/startup_script
+ rt=$?
+ fi
+ if [[ ${rt} -eq 0 ]]; then
+ chmod +x /tmp/startup_script
+ /tmp/startup_script
+ fi
+ fi
+}
+
+if [[ $(tty) == "/dev/tty1" ]]; then
+ #automated_script
+ touch /tmp/I_raN
+ /root/startx
+fi
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.bash_profile b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.bash_profile
new file mode 100644
index 0000000..e78dd98
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.bash_profile
@@ -0,0 +1,7 @@
+#!/bin/bash
+if [[ $(tty) == "/dev/tty1" ]]; then
+ #automated_script
+ /root/linhes_install/pre_install.sh
+fi
+
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/menu.lst b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/menu.lst
new file mode 100755
index 0000000..0ecc2a7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M quiet vga=0x314 splash=silent,theme:linhes console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title LinHES-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x314 splash=silent,theme:linhes console=tty1 nox
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/rc.conf b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/rc.conf
new file mode 100755
index 0000000..43a275f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/delete_me/rc.conf
@@ -0,0 +1,71 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf-8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="yes"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="!soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="!soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST_=($ALSABLACKLIST !snd-pcsp !nouveau)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=($MOD_BLACKLIST_)
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(fbsplash !syslog-ng !hotplug !pcmcia !network !mysqld dbus avahi-daemon)
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/go.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/go.sh
new file mode 100755
index 0000000..2e6b1d4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/go.sh
@@ -0,0 +1,41 @@
+#!/bin/bash
+#This script is run after data is copied, but before configuration.
+
+. /usr/MythVantage/bin/mv_config.py
+
+PD="/root/.post_process"
+pacman -S --force --noconfirm runit-scripts
+
+HDIR=`dirname $MYTHHOME`
+mkdir -p $HDIR
+useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv
+
+
+
+chown -R mythtv.mythtv $MYTHHOME
+
+#creating /myth for live cd
+mkdir -p $DATAMOUNT
+create_media_dirs.sh $DATAMOUNT
+chown -R mythtv.mythtv $DATAMOUNT/media
+
+
+
+python2 /root/.post_process/locale.py
+echo "generating locales"
+/usr/sbin/locale-gen
+
+rm -f /etc/issue
+ln -s /etc/LinHES-release /etc/issue
+
+#remove files
+#rm -f /root/LinHES-install.sh
+#rm -f /root/startx
+rm -f /root/.directory
+rm -rf /root/linhes_install
+rm -f /etc/systemd/system/linhes-install.service
+
+#cp -rvpf /.post_process/home/mythtv /home/
+#cp -rvpf /.post_process/home/mythtv/.fluxbox /root
+#cp -vpf /.post_process/nouveau.conf /etc/modprobe.d/nouveau.conf
+mv $PD $PD.old
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/locale.py b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/locale.py
new file mode 100644
index 0000000..70cfcbd
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/.post_process/locale.py
@@ -0,0 +1,23 @@
+def genlocale():
+ #logging.info("Generating locales")
+ locale_list=[ "en_US ISO-8859-1", "en_US.UTF-8 UTF-8" , "de_DE.UTF-8", "da_DK.utf8", "en_DK.utf8", "it_IT.utf8", "de_DE.UTF-8"]
+ #locale_list=['UTF-8', 'en_US ISO-8859-1']
+
+ localefile="/etc/locale.gen"
+ f = open(localefile)
+ lines = f.readlines()
+ f.close()
+
+ f = open(localefile,'w')
+
+ for line in lines:
+ outline = line
+ for locale in locale_list:
+ #print locale, line
+ if locale in line:
+ outline = line.replace('#','')
+ f.write(outline)
+
+ f.close
+
+genlocale()
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/customize_airootfs.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/customize_airootfs.sh
new file mode 100755
index 0000000..0845424
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/customize_airootfs.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+set -e -u
+
+sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
+locale-gen
+
+ln -sf /usr/share/zoneinfo/UTC /etc/localtime
+
+#usermod -s /usr/bin/zsh root
+#cp -aT /etc/skel/ /root/
+chmod 700 /root
+
+
+chmod 750 /etc/sudoers.d
+chmod 440 /etc/sudoers.d/g_wheel
+
+systemctl set-default multi-user.target
+
+#LinHES
+#add symlink
+
+if [ -e /etc/udev/rules.d/80-net-name-slot.rules ]
+then
+ rm -f /etc/udev/rules.d/80-net-name-slot.rules
+fi
+
+ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
+
+#remove tmp mount as tmpfs
+systemctl mask tmp.mount
+systemctl mask dhcpcd.service
+systemctl mask dhcpcd\@.service
+
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/LinHES-install.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/LinHES-install.sh
new file mode 100755
index 0000000..2b0cdb2
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/LinHES-install.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+#redirect stderr to stdout, then rediret stdout to file
+. /etc/profile
+exec 2>&1
+exec > /tmp/mythvantage_install.log
+#/usr/bin/nvidia-settings -a InitialPixmapPlacement=2
+#keylaunch &
+#/usr/bin/tilda &
+#/usr/X11R6/bin/unclutter -root -idle 0 -jitter 400 -noevents &
+export MALLOC_CHECK_=0
+
+WM="e16 -P /usr/share/wm_data/e16_config_dir/"
+$WM &
+pid=$!
+
+xset s off
+xset -dpms
+xhost +
+xdotool mousemove 0 0
+
+cp -f /etc/keylaunchrc /root/.keylaunchrc
+/usr/bin/keylaunch &
+
+
+CMDLINE=$(cat /proc/cmdline)
+echo $CMDLINE |grep -q nfsroot
+NFSROOT=$?
+echo $CMDLINE |grep -q clean_upgrade
+if [ $? = 0 ]
+then
+ export CLEAN_UPGRADE=YES
+else
+ export CLEAN_UPGRADE=NO
+fi
+
+#show the readme
+MythVantage -r
+
+if [ x$NFSROOT = x1 ]
+then
+ unbuffer MythVantage -L &
+else
+ NETBOOT=YES MythVantage &
+fi
+
+
+wait $pid
+
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/all_stop.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/all_stop.sh
new file mode 100644
index 0000000..6d86635
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/all_stop.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+killall -9 X
+killall -9 xinit
+killall -9 e16
+killall -9 MythVantage
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/pre_install.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/pre_install.sh
new file mode 100755
index 0000000..83224b7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/pre_install.sh
@@ -0,0 +1,120 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/profile
+. ${MV_ROOT}/bin/install_functions.sh
+umount /tmp
+clear
+
+
+ln -s /var-lib-pacman/sync /var/lib/pacman/sync
+
+function mysql_check {
+ mysql -e "show databases;" 2>/dev/null >/dev/null
+ return $?
+}
+
+function mythconverg_check {
+ mysql mythconverg -e "describe settings;" 2>/dev/null >/dev/null
+ return $?
+}
+
+function install_db {
+ pacman --noconfirm -R mythdb-initial 2>/dev/null > /dev/null
+ pacman -S --noconfirm mythdb-initial 2>/dev/null > /dev/null
+}
+
+
+#set bootdev.txt for shutdown eject in archiso_shutdown
+mount|grep bootmnt|cut -f1 -d" " > /run/initramfs/bootdev.txt
+cp -f /usr/bin/eject /run/initramfs/usr/bin/eject
+
+#check to see if mysql is running
+stat_busy "Checking Mysql"
+ATTEMPT=0
+mysql_check && printhl " Installing the initial database" &&install_db
+mythconverg_check
+status=$?
+while [ ! $status = 0 ]
+do
+ #/etc/rc.d/mysqld start
+ systemctl start mysqld.service
+ mysqlstatus=$?
+ if [ $mysqlstatus = 0 ]
+ then
+ mysql_check && install_db
+ mythconverg_check
+ status=$?
+ else
+ ((ATTEMPT=ATTEMPT+1))
+ systemctl stop mysqld.service
+ #/etc/rc.d/mysqld stop
+ sleep 2
+ fi
+ if [ $ATTEMPT = 20 ]
+ then
+ printhl " Could not start mysql or install mythconverg within 20 attempts"
+ printhl " Aborting install"
+ exit 20
+ fi
+done
+stat_done
+
+#check network parms
+stat_busy "Checking network"
+init_network
+stat_done
+
+stat_busy "Probing network"
+request_dhcp &
+stat_done
+
+#save some cmdline options
+stat_busy "Parsing command line"
+parse_cmdline_2_db
+bootsplash_setup
+stat_done
+
+#search for remote
+stat_busy "Checking for remote"
+init_remote
+stat_done
+printhl "Finished"
+
+#creating /myth for live cd
+. /usr/MythVantage/bin/mv_config.py
+HDIR=`dirname $MYTHHOME`
+mkdir -p $HDIR
+useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv
+chown -R mythtv.mythtv $MYTHHOME
+#creating mountpoint for live cd
+mkdir -p $DATAMOUNT
+create_media_dirs.sh $DATAMOUNT
+chown -R mythtv.mythtv $DATAMOUNT/media
+
+
+
+printhl "Finished"
+systemctl start dbus
+systemctl start avahi-daemon
+
+echo $CMDLINE | grep -qi NoX
+if [ $? = 0 ]
+then
+ echo ""
+ printhl "No auto X option found"
+ # /usr/bin/chvt 2
+else
+ #/root/linhes_install/startx &
+ systemctl start linhes-install
+fi
+
+# Set up automatically logged in user
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/startx b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/startx
new file mode 100755
index 0000000..6503bf7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/root/linhes_install/startx
@@ -0,0 +1,35 @@
+#!/bin/bash
+. /etc/profile
+
+export USER=root
+export HOME=/root
+
+CMDLINE=$(cat /proc/cmdline)
+TEMPVAR=${CMDLINE#*ip=}
+IP=${TEMPVAR%% *}
+echo $CMDLINE |grep -q vnc
+USEVNC=$?
+
+if [ x$USEVNC = x1 ]
+then
+ RUNP=1 $MV_ROOT/bin/xconfig.sh 2>/dev/null
+ startx /root/linhes_install/LinHES-install.sh -- -logverbose 6 -allowMouseOpenFail 2>/tmp/x.log
+else
+ #VNC
+ pacman -S --force --noconfirm tigervnc
+ systemctl start dbus
+ cp -f $TEMPLATES/vnc.service /etc/avahi/services/
+ systemctl start avahi-daemon
+ cd /root
+ mkdir .vnc
+ echo 54321 |vncpasswd -f > /root/.vnc/passwd
+ chmod 500 /root/.vnc/passwd
+ rm -f /root/.vnc/xstartup 2>/dev/null
+ ln -s /root/linhes_install/LinHES-install.sh /root/.vnc/xstartup
+ vncserver
+ echo "The VNC server password is: 54321"
+ echo "Please connect to one of these ip's"
+ echo "-------------------------------------------"
+ ip addr show |grep "inet" |grep -v inet6|cut -d\/ -f1
+ echo "-------------------------------------------"
+fi
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/autologin b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/autologin
new file mode 100755
index 0000000..c124f9e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/autologin
@@ -0,0 +1,2 @@
+#!/bin/bash
+/bin/login -f root
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/go.sh b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/go.sh
new file mode 100644
index 0000000..e6222e4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/airootfs/usr/bin/go.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+/usr/MythVantage/bin/mv_install.py --rootdisk=sda --rootfs=ext3 --rootsize=5000 --datafs=ext3 --datasize=50 --datadisk=sda --swapsize=2 -c full_install
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/backup_copy/backup_copy/isolinux/isolinux.cfg b/build_tools/archiso-19/mythvantage/backup_copy/backup_copy/backup_copy/isolinux/isolinux.cfg
new file mode 100644
index 0000000..10fd285
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/backup_copy/backup_copy/isolinux/isolinux.cfg
@@ -0,0 +1,6 @@
+PATH /%INSTALL_DIR%/boot/syslinux/
+DEFAULT loadconfig
+
+LABEL loadconfig
+ CONFIG /%INSTALL_DIR%/boot/syslinux/archiso.cfg
+ APPEND /%INSTALL_DIR%/
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/backup_copy/isolinux/isolinux.cfg b/build_tools/archiso-19/mythvantage/backup_copy/backup_copy/isolinux/isolinux.cfg
new file mode 100644
index 0000000..10fd285
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/backup_copy/isolinux/isolinux.cfg
@@ -0,0 +1,6 @@
+PATH /%INSTALL_DIR%/boot/syslinux/
+DEFAULT loadconfig
+
+LABEL loadconfig
+ CONFIG /%INSTALL_DIR%/boot/syslinux/archiso.cfg
+ APPEND /%INSTALL_DIR%/
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/build.sh b/build_tools/archiso-19/mythvantage/backup_copy/build.sh
new file mode 100755
index 0000000..4405208
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/build.sh
@@ -0,0 +1,360 @@
+#!/bin/bash
+mknod -m 660 /dev/loop0 b 7 0
+set -e -u
+
+iso_name=archlinux
+iso_label="ARCH_$(date +%Y%m)"
+iso_version=$(date +%Y.%m.%d)
+install_dir=arch
+work_dir=work
+out_dir=out
+
+arch=$(uname -m)
+verbose=""
+pacman_conf=${work_dir}/pacman.conf
+script_path=$(readlink -f ${0%/*})
+
+pacman_cache_files="data-storage-disk0-pacman-pkg"
+cache_dirs="/data/storage/disk0/pacman/pkg"
+pacman_cache=${cache_dirs}
+
+
+_usage ()
+{
+ echo "usage ${0} [options]"
+ echo
+ echo " General options:"
+ echo " -N <iso_name> Set an iso filename (prefix)"
+ echo " Default: ${iso_name}"
+ echo " -V <iso_version> Set an iso version (in filename)"
+ echo " Default: ${iso_version}"
+ echo " -L <iso_label> Set an iso label (disk label)"
+ echo " Default: ${iso_label}"
+ echo " -D <install_dir> Set an install_dir (directory inside iso)"
+ echo " Default: ${install_dir}"
+ echo " -w <work_dir> Set the working directory"
+ echo " Default: ${work_dir}"
+ echo " -o <out_dir> Set the output directory"
+ echo " Default: ${out_dir}"
+ echo " -v Enable verbose output"
+ echo " -h This help message"
+ exit ${1}
+}
+
+# Helper function to run make_*() only one time per architecture.
+run_once() {
+ if [[ ! -e ${work_dir}/build.${1}_${arch} ]]; then
+ $1
+ touch ${work_dir}/build.${1}_${arch}
+ fi
+}
+
+# Setup custom pacman.conf with current cache directories.
+make_pacman_conf() {
+ local _cache_dirs
+ _cache_dirs=($(pacman -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g'))
+ sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n ${_cache_dirs[@]})|g" ${script_path}/pacman.conf > ${pacman_conf}
+}
+
+# Base installation, plus needed packages (airootfs)
+make_basefs() {
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" init
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -p "memtest86+ mkinitcpio-nfs-utils nbd" install
+}
+
+# Additional packages (airootfs)
+make_packages() {
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -p "$(grep -h -v ^# ${script_path}/packages.{both,${arch}})" install
+}
+
+# Copy mkinitcpio archiso hooks and build initramfs (airootfs)
+make_setup_mkinitcpio() {
+ local _hook
+ for _hook in archiso archiso_shutdown archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_loop_mnt; do
+ cp /usr/lib/initcpio/hooks/${_hook} ${work_dir}/${arch}/airootfs/usr/lib/initcpio/hooks
+ cp /usr/lib/initcpio/install/${_hook} ${work_dir}/${arch}/airootfs/usr/lib/initcpio/install
+ done
+ cp /usr/lib/initcpio/install/archiso_kms ${work_dir}/${arch}/airootfs/usr/lib/initcpio/install
+ cp /usr/lib/initcpio/archiso_shutdown ${work_dir}/${arch}/airootfs/usr/lib/initcpio
+ cp ${script_path}/mkinitcpio.conf ${work_dir}/${arch}/airootfs/etc/mkinitcpio-archiso.conf
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -r 'mkinitcpio -c /etc/mkinitcpio-archiso.conf -k /boot/vmlinuz-linux -g /boot/archiso.img' run
+}
+
+# Customize installation (airootfs)
+make_customize_airootfs() {
+ cp -af ${script_path}/airootfs ${work_dir}/${arch}
+
+ curl -o ${work_dir}/${arch}/airootfs/etc/pacman.d/mirrorlist 'https://www.archlinux.org/mirrorlist/?country=all&protocol=http&use_mirror_status=on'
+
+ lynx -dump -nolist 'https://wiki.archlinux.org/index.php/Installation_Guide?action=render' >> ${work_dir}/${arch}/airootfs/root/install.txt
+
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -r '/root/customize_airootfs.sh' run
+ rm ${work_dir}/${arch}/airootfs/root/customize_airootfs.sh
+}
+
+# Prepare kernel/initramfs ${install_dir}/boot/
+make_boot() {
+ mkdir -p ${work_dir}/iso/${install_dir}/boot/${arch}
+ cp ${work_dir}/${arch}/airootfs/boot/archiso.img ${work_dir}/iso/${install_dir}/boot/${arch}/archiso.img
+ cp ${work_dir}/${arch}/airootfs/boot/vmlinuz-linux ${work_dir}/iso/${install_dir}/boot/${arch}/vmlinuz
+}
+
+# Add other aditional/extra files to ${install_dir}/boot/
+make_boot_extra() {
+ cp ${work_dir}/${arch}/airootfs/boot/memtest86+/memtest.bin ${work_dir}/iso/${install_dir}/boot/memtest
+ cp ${work_dir}/${arch}/airootfs/usr/share/licenses/common/GPL2/license.txt ${work_dir}/iso/${install_dir}/boot/memtest.COPYING
+}
+
+# Prepare /${install_dir}/boot/syslinux
+make_syslinux() {
+ mkdir -p ${work_dir}/iso/${install_dir}/boot/syslinux
+ for _cfg in ${script_path}/syslinux/*.cfg; do
+ sed "s|%ARCHISO_LABEL%|${iso_label}|g;
+ s|%INSTALL_DIR%|${install_dir}|g" ${_cfg} > ${work_dir}/iso/${install_dir}/boot/syslinux/${_cfg##*/}
+ done
+ cp ${script_path}/syslinux/splash.png ${work_dir}/iso/${install_dir}/boot/syslinux
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/*.c32 ${work_dir}/iso/${install_dir}/boot/syslinux
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/lpxelinux.0 ${work_dir}/iso/${install_dir}/boot/syslinux
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/memdisk ${work_dir}/iso/${install_dir}/boot/syslinux
+ mkdir -p ${work_dir}/iso/${install_dir}/boot/syslinux/hdt
+ gzip -c -9 ${work_dir}/${arch}/airootfs/usr/share/hwdata/pci.ids > ${work_dir}/iso/${install_dir}/boot/syslinux/hdt/pciids.gz
+ gzip -c -9 ${work_dir}/${arch}/airootfs/usr/lib/modules/*-ARCH/modules.alias > ${work_dir}/iso/${install_dir}/boot/syslinux/hdt/modalias.gz
+}
+
+# Prepare /isolinux
+make_isolinux() {
+ mkdir -p ${work_dir}/iso/isolinux
+ sed "s|%INSTALL_DIR%|${install_dir}|g" ${script_path}/isolinux/isolinux.cfg > ${work_dir}/iso/isolinux/isolinux.cfg
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/isolinux.bin ${work_dir}/iso/isolinux/
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/isohdpfx.bin ${work_dir}/iso/isolinux/
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/ldlinux.c32 ${work_dir}/iso/isolinux/
+}
+
+# Prepare /EFI
+make_efi() {
+ mkdir -p ${work_dir}/iso/EFI/boot
+ cp ${work_dir}/x86_64/airootfs/usr/lib/prebootloader/PreLoader.efi ${work_dir}/iso/EFI/boot/bootx64.efi
+ cp ${work_dir}/x86_64/airootfs/usr/lib/prebootloader/HashTool.efi ${work_dir}/iso/EFI/boot/
+
+ cp ${work_dir}/x86_64/airootfs/usr/lib/gummiboot/gummibootx64.efi ${work_dir}/iso/EFI/boot/loader.efi
+
+ mkdir -p ${work_dir}/iso/loader/entries
+ cp ${script_path}/efiboot/loader/loader.conf ${work_dir}/iso/loader/
+ cp ${script_path}/efiboot/loader/entries/uefi-shell-v2-x86_64.conf ${work_dir}/iso/loader/entries/
+ cp ${script_path}/efiboot/loader/entries/uefi-shell-v1-x86_64.conf ${work_dir}/iso/loader/entries/
+
+ sed "s|%ARCHISO_LABEL%|${iso_label}|g;
+ s|%INSTALL_DIR%|${install_dir}|g" \
+ ${script_path}/efiboot/loader/entries/archiso-x86_64-usb.conf > ${work_dir}/iso/loader/entries/archiso-x86_64.conf
+
+ # EFI Shell 2.0 for UEFI 2.3+ ( http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=UEFI_Shell )
+ curl -o ${work_dir}/iso/EFI/shellx64_v2.efi https://svn.code.sf.net/p/edk2/code/trunk/edk2/ShellBinPkg/UefiShell/X64/Shell.efi
+ # EFI Shell 1.0 for non UEFI 2.3+ ( http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=Efi-shell )
+ curl -o ${work_dir}/iso/EFI/shellx64_v1.efi https://svn.code.sf.net/p/edk2/code/trunk/edk2/EdkShellBinPkg/FullShell/X64/Shell_Full.efi
+}
+
+# Prepare efiboot.img::/EFI for "El Torito" EFI boot mode
+make_efiboot() {
+ mkdir -p ${work_dir}/iso/EFI/archiso
+ truncate -s 31M ${work_dir}/iso/EFI/archiso/efiboot.img
+ mkfs.vfat -n ARCHISO_EFI ${work_dir}/iso/EFI/archiso/efiboot.img
+
+ mkdir -p ${work_dir}/efiboot
+ mount ${work_dir}/iso/EFI/archiso/efiboot.img ${work_dir}/efiboot
+
+ mkdir -p ${work_dir}/efiboot/EFI/archiso
+ cp ${work_dir}/iso/${install_dir}/boot/x86_64/vmlinuz ${work_dir}/efiboot/EFI/archiso/vmlinuz.efi
+ cp ${work_dir}/iso/${install_dir}/boot/x86_64/archiso.img ${work_dir}/efiboot/EFI/archiso/archiso.img
+
+ mkdir -p ${work_dir}/efiboot/EFI/boot
+ cp ${work_dir}/x86_64/airootfs/usr/lib/prebootloader/PreLoader.efi ${work_dir}/efiboot/EFI/boot/bootx64.efi
+ cp ${work_dir}/x86_64/airootfs/usr/lib/prebootloader/HashTool.efi ${work_dir}/efiboot/EFI/boot/
+
+ cp ${work_dir}/x86_64/airootfs/usr/lib/gummiboot/gummibootx64.efi ${work_dir}/efiboot/EFI/boot/loader.efi
+
+ mkdir -p ${work_dir}/efiboot/loader/entries
+ cp ${script_path}/efiboot/loader/loader.conf ${work_dir}/efiboot/loader/
+ cp ${script_path}/efiboot/loader/entries/uefi-shell-v2-x86_64.conf ${work_dir}/efiboot/loader/entries/
+ cp ${script_path}/efiboot/loader/entries/uefi-shell-v1-x86_64.conf ${work_dir}/efiboot/loader/entries/
+
+ sed "s|%ARCHISO_LABEL%|${iso_label}|g;
+ s|%INSTALL_DIR%|${install_dir}|g" \
+ ${script_path}/efiboot/loader/entries/archiso-x86_64-cd.conf > ${work_dir}/efiboot/loader/entries/archiso-x86_64.conf
+
+ cp ${work_dir}/iso/EFI/shellx64_v2.efi ${work_dir}/efiboot/EFI/
+ cp ${work_dir}/iso/EFI/shellx64_v1.efi ${work_dir}/efiboot/EFI/
+
+ umount ${work_dir}/efiboot
+}
+
+# Build airootfs filesystem image
+make_prepare() {
+ cp -a -l -f ${work_dir}/${arch}/airootfs ${work_dir}
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" pkglist
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" prepare
+ rm -rf ${work_dir}/airootfs
+ # rm -rf ${work_dir}/${arch}/airootfs (if low space, this helps)
+}
+
+# Build ISO
+make_iso() {
+ mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" -L "${iso_label}" -o "${out_dir}" iso "${iso_name}-${iso_version}-dual.iso"
+}
+
+
+#------Start of LinHES functions ----
+
+
+make_cache_repo() {
+ local _url _urls _pkg_name _dst _pkgs _cache_dir
+
+ mkdir -p ${work_dir}/${arch}/airootfs/${pacman_cache}
+ old_cache=${work_dir}/${arch}/old_cache
+ mkdir -p "$old_cache"
+
+ #update repo database in airootfs
+ pacman --config "${pacman_conf}" -Sy -r ${work_dir}/${arch}/airootfs
+
+ #update repo database in airootfs
+ #cmd="pacman -Sy "
+ #setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -r "$cmd" run
+
+ echo "------------------------------------------"
+ for i in $(cat $script_path/packages.${arch}.cache)
+ do
+ if [[ $i != "#"* ]]
+ then
+ echo "Adding $i to pacman cache"
+ _urls=$(pacman --config "${pacman_conf}" -Sp -r ${work_dir}/${arch}/airootfs ${i})
+ #cmd="pacman -Sw $i"
+ #setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -r "$cmd" run
+
+ cd $old_cache
+ for url in ${_urls}
+ do
+ echo "downloading $url"
+ #wget -N ${url}
+ curl -O ${url}
+ done
+ cd -
+ fi
+#
+ done
+ cp -rp $old_cache/* ${work_dir}/${arch}/airootfs/${pacman_cache}
+ echo "------------------------------------------"
+
+}
+
+copy_pacman_root(){
+ cp -f "${pacman_conf}" ${work_dir}/${arch}/airootfs/etc/pacman.conf
+ sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n ${cache_dirs[@]})|g" \
+ "${pacman_conf}" > ${work_dir}/${arch}/airootfs/etc/pacman.conf
+}
+
+
+make_pristine_copy() {
+ echo "Creating copy of pristine file for later use"
+ cd $work_dir/${arch}/airootfs
+ pwd
+ cat ${script_path}/pristine.list | xargs tar -cf pristine.tar
+ cd -
+}
+find_size(){
+ #find the size of the install.
+ #This is used to calculate progress on the install
+ tsize=`du -sm ${work_dir}/${arch}/airootfs | cut -f1`
+ echo "TOTALSIZE=$tsize" > ${work_dir}/${arch}/airootfs/root/.install_size
+ upsize=`du -sm --exclude data ${work_dir}/${arch}/airootfs |cut -f1`
+ echo "UPGRADESIZE=$upsize" >> ${work_dir}/${arch}/airootfs/root/.install_size
+}
+
+copy_boot(){
+ cp -rp ${work_dir}/${arch}/airootfs/boot ${work_dir}/${arch}/airootfs/boot-orig
+ }
+
+make_var_cache_pacman(){
+ mv ${work_dir}/${arch}/airootfs/${pacman_cache} ${work_dir}/${arch}/airootfs/${pacman_cache_files}
+}
+make_var_lib_pacman(){
+ #make backup copy of /var/lib/pacman for later usage
+ cp -rp ${work_dir}/${arch}/airootfs/var/lib/pacman ${work_dir}/${arch}/airootfs/var-lib-pacman
+}
+
+
+#-----end of linhes functions
+
+
+
+if [[ ${EUID} -ne 0 ]]; then
+ echo "This script must be run as root."
+ _usage 1
+fi
+
+if [[ ${arch} != x86_64 ]]; then
+ echo "This script needs to be run on x86_64"
+ _usage 1
+fi
+
+while getopts 'N:V:L:D:w:o:vh' arg; do
+ case "${arg}" in
+ N) iso_name="${OPTARG}" ;;
+ V) iso_version="${OPTARG}" ;;
+ L) iso_label="${OPTARG}" ;;
+ D) install_dir="${OPTARG}" ;;
+ w) work_dir="${OPTARG}" ;;
+ o) out_dir="${OPTARG}" ;;
+ v) verbose="-v" ;;
+ h) _usage 0 ;;
+ *)
+ echo "Invalid argument '${arg}'"
+ _usage 1
+ ;;
+ esac
+done
+
+mkdir -p ${work_dir}
+
+run_once make_pacman_conf
+
+# Do all stuff for each airootfs
+#for arch in i686 x86_64; do
+#for arch in i686 x86_64; do
+ run_once make_basefs
+ run_once make_packages
+
+ #LinHES
+ run_once copy_pacman_root
+ run_once make_cache_repo
+ ##run_once make_var_cache_pacman
+
+ run_once make_var_lib_pacman
+ #run_once copy_boot
+ run_once make_pristine_copy
+ find_size
+ #----
+
+ run_once make_setup_mkinitcpio
+ run_once make_customize_airootfs #LinHES, function is the same but different overlays
+
+#done
+
+#for arch in i686 x86_64; do
+ run_once make_boot
+#done
+
+# Do all stuff for "iso"
+run_once make_boot_extra
+run_once make_syslinux
+run_once make_isolinux
+
+#JM FIX
+#run_once make_efi
+#run_once make_efiboot
+#------------
+
+
+#for arch in i686 x86_64; do
+ run_once make_prepare
+#done
+
+run_once make_iso
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/archiso-x86_64-cd.conf b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/archiso-x86_64-cd.conf
new file mode 100644
index 0000000..9892c59
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/archiso-x86_64-cd.conf
@@ -0,0 +1,4 @@
+title Arch Linux archiso x86_64 UEFI CD
+linux /EFI/archiso/vmlinuz.efi
+initrd /EFI/archiso/archiso.img
+options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/archiso-x86_64-usb.conf b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/archiso-x86_64-usb.conf
new file mode 100644
index 0000000..f61c532
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/archiso-x86_64-usb.conf
@@ -0,0 +1,4 @@
+title Arch Linux archiso x86_64 UEFI USB
+linux /%INSTALL_DIR%/boot/x86_64/vmlinuz
+initrd /%INSTALL_DIR%/boot/x86_64/archiso.img
+options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/uefi-shell-v1-x86_64.conf b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/uefi-shell-v1-x86_64.conf
new file mode 100644
index 0000000..9597ff2
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/uefi-shell-v1-x86_64.conf
@@ -0,0 +1,2 @@
+title UEFI Shell x86_64 v1
+efi /EFI/shellx64_v1.efi
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/uefi-shell-v2-x86_64.conf b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/uefi-shell-v2-x86_64.conf
new file mode 100644
index 0000000..0dde77a
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/entries/uefi-shell-v2-x86_64.conf
@@ -0,0 +1,2 @@
+title UEFI Shell x86_64 v2
+efi /EFI/shellx64_v2.efi
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/loader.conf b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/loader.conf
new file mode 100644
index 0000000..62c4a83
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/efiboot/loader/loader.conf
@@ -0,0 +1,2 @@
+timeout 3
+default archiso-x86_64
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/isolinux/isolinux.cfg b/build_tools/archiso-19/mythvantage/backup_copy/isolinux/isolinux.cfg
new file mode 100644
index 0000000..10fd285
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/isolinux/isolinux.cfg
@@ -0,0 +1,6 @@
+PATH /%INSTALL_DIR%/boot/syslinux/
+DEFAULT loadconfig
+
+LABEL loadconfig
+ CONFIG /%INSTALL_DIR%/boot/syslinux/archiso.cfg
+ APPEND /%INSTALL_DIR%/
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/mkinitcpio.conf b/build_tools/archiso-19/mythvantage/backup_copy/mkinitcpio.conf
new file mode 100644
index 0000000..c2d21e4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/mkinitcpio.conf
@@ -0,0 +1,7 @@
+#HOOKS="base udev memdisk archiso_shutdown archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block pcmcia filesystems keyboard"
+#COMPRESSION="xz"
+
+HOOKS="base udev memdisk archiso_shutdown archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms pata scsi sata virtio usb fw pcmcia filesystems usbinput"
+
+COMPRESSION="xz"
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/mkinitcpio.conf.orig b/build_tools/archiso-19/mythvantage/backup_copy/mkinitcpio.conf.orig
new file mode 100644
index 0000000..2f46da4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/mkinitcpio.conf.orig
@@ -0,0 +1,2 @@
+HOOKS="base udev memdisk archiso_shutdown archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block pcmcia filesystems keyboard"
+COMPRESSION="xz"
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/packages.both.orig b/build_tools/archiso-19/mythvantage/backup_copy/packages.both.orig
new file mode 100644
index 0000000..36eb346
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/packages.both.orig
@@ -0,0 +1,62 @@
+#arch-install-scripts
+b43-fwcutter
+btrfs-progs
+clonezilla
+crda
+darkhttpd
+ddrescue
+dhclient
+dialog
+dmraid
+dnsmasq
+dnsutils
+dosfstools
+elinks
+ethtool
+f2fs-tools
+fsarchiver
+gnu-netcat
+gpm
+gptfdisk
+grml-zsh-config
+grub
+haveged
+hdparm
+intel-ucode
+ipw2100-fw
+ipw2200-fw
+irssi
+lftp
+linux-atm
+mc
+mtools
+nfs-utils
+nilfs-utils
+nmap
+ntfs-3g
+ntp
+openconnect
+openssh
+openvpn
+partclone
+parted
+partimage
+ppp
+pptpclient
+rfkill
+rp-pppoe
+rsync
+smartmontools
+speedtouch
+sudo
+tcpdump
+testdisk
+usb_modeswitch
+vpnc
+wget
+wireless_tools
+wpa_actiond
+wvdial
+xl2tpd
+zd1211-firmware
+zsh
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/packages.i686 b/build_tools/archiso-19/mythvantage/backup_copy/packages.i686
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/packages.i686
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/packages.x86_64 b/build_tools/archiso-19/mythvantage/backup_copy/packages.x86_64
new file mode 100644
index 0000000..e5d5600
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/packages.x86_64
@@ -0,0 +1,153 @@
+#sysvinit
+initscripts
+#b43-fwcutter
+acpid
+btrfs-progs
+crda
+#darkhttpd
+ddrescue
+#dhclient
+dhcpcd
+dialog
+dmraid
+#dnsmasq
+dnsutils
+dcron
+dosfstools
+dvb-firmware
+efibootmgr
+#elinks
+#gnu-netcat
+gptfdisk
+#fluxbox
+plymouth
+plymouth-theme-linhes-logo
+#haveged
+libhdhomerun
+hdparm
+ipw2100-fw
+ipw2200-fw
+iputils
+#irssi
+#lftp
+#lilo
+#linux-atm
+lirc
+mtools
+#netcfg
+net-tools
+nfs-utils
+nilfs-utils
+#nmap
+#ntfs-3g
+#ntfsprogs
+ntp
+#openconnect
+openssh
+#openvpn
+parted
+#pptpclient
+#rp-pppoe
+rsync
+#smartmontools
+#speedtouch
+#tcpdump
+#vpnc
+v86d
+wireless_tools
+wpa_actiond
+zd1211-firmware
+python2
+LinHES-config
+bc
+libstatgrab
+mysql-python
+expect
+curl
+dnsutils
+parted
+sg3_utils
+nmbscan
+squashfs-tools
+rsync
+python-parted
+python2-pexpect
+python-netifaces
+python-iplib
+xorg-apps
+xorg-fonts
+windowmaker
+xf86-video-vesa
+xorg-xinit
+xorg-server
+xorg-bdftopcf
+xorg-docs
+xorg-font-util
+xorg-fonts-100dpi
+#xorg-fonts-75dpi
+xorg-fonts-encodings
+xorg-iceauth
+xorg-luit
+xorg-mkfontdir
+xorg-mkfontscale
+#xorg-res-utils
+xorg-server
+xorg-sessreg
+xorg-setxkbmap
+xorg-x11perf
+xorg-xauth
+xorg-xbacklight
+xorg-xcmsdb
+xorg-xcursorgen
+xorg-xdpyinfo
+xorg-xdriinfo
+xorg-xev
+#xorg-xgamma
+xorg-xhost
+xorg-xinput
+xorg-xkbcomp
+xorg-xkbevd
+xorg-xkbutils
+xorg-xkill
+xorg-xlsatoms
+xorg-xlsclients
+xorg-xmodmap
+xorg-xpr
+xorg-xprop
+xorg-xrandr
+xorg-xrdb
+xorg-xrefresh
+xorg-xset
+xorg-xsetroot
+xorg-xvinfo
+xorg-xwd
+xorg-xwininfo
+xorg-xwud
+xterm
+xkeyboard-config
+grub-common
+grub-bios
+LinHES-config
+LinHES-system
+mythtv
+mysql
+etcnet
+#alt_wm
+e16_theme_settings
+wmaker_settings
+mlocate
+
+mythinstall
+mytharchive
+mythbrowser
+mythgallery
+mythgame
+mythmusic
+mythnews
+mythweather
+linhes-theme
+
+ivtv-utils
+alsa-utils
+
+ceton_infinitv
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/packages.x86_64.cache b/build_tools/archiso-19/mythvantage/backup_copy/packages.x86_64.cache
new file mode 100644
index 0000000..33b41f9
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/packages.x86_64.cache
@@ -0,0 +1,29 @@
+runit-scripts
+#linux
+mythdb-initial
+mythnetvision
+tigervnc
+x11vnc
+nvidia
+nvidia-utils
+vdpauinfo
+lighttpd
+mythweb
+nfs-utils
+samba
+mplayer
+lcdproc
+mythappletrailers
+xscreensaver
+supplemental-web
+supplemental-web-slave
+#romdb
+#miro
+oss
+xf86-input-vmmouse
+xf86-video-vmware
+xf86-video-vesa
+xf86-video-intel
+libgl
+svga-dri
+nss-mdns
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/pacman.conf b/build_tools/archiso-19/mythvantage/backup_copy/pacman.conf
new file mode 100644
index 0000000..7a9cfff
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/pacman.conf
@@ -0,0 +1,77 @@
+#
+# /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 = /data/storage/disk0/pacman/pkg
+#LogFile = /var/log/pacman.log
+#GPGDir = /etc/pacman.d/gnupg/
+HoldPkg = pacman glibc
+#XferCommand = /usr/bin/curl -C - -f %u > %o
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+#CleanMethod = KeepInstalled
+Architecture = auto
+
+# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
+#IgnorePkg =
+#IgnoreGroup =
+
+#NoUpgrade =
+#NoExtract =
+
+# Misc options
+#UseSyslog
+#UseDelta
+#TotalDownload
+# We cannot check disk space from within a chroot environment
+#CheckSpace
+VerbosePkgLists
+
+# By default, pacman accepts packages signed by keys that its local keyring
+# trusts (see pacman-key and its man page), as well as unsigned packages.
+SigLevel = Optional TrustedOnly
+
+# NOTE: You must run `pacman-key --init` before first using pacman; the local
+# keyring can then be populated with the keys of all official Arch Linux
+# packagers with `pacman-key --populate archlinux`.
+
+#
+# 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
+# - URLs will have $arch replaced by the name of the architecture
+#
+# 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.
+
+
+
+[core-testing]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
+
+[extra-testing]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/pristine.list b/build_tools/archiso-19/mythvantage/backup_copy/pristine.list
new file mode 100755
index 0000000..a369353
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/pristine.list
@@ -0,0 +1,4 @@
+./etc/hosts
+./etc/rc.local
+./boot
+./var/lib/pacman/ \ No newline at end of file
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/boot_background.psd b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/boot_background.psd
new file mode 100755
index 0000000..f202cbe
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/boot_background.psd
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_disk_testing.pacman b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_disk_testing.pacman
new file mode 100644
index 0000000..0c97f29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_disk_testing.pacman
@@ -0,0 +1,9 @@
+[core-testing]
+SigLevel = Optional TrustedOnly
+Server = file:///data/pkg_repo/$arch/$repo/
+
+[extra-testing]
+SigLevel = Optional TrustedOnly
+Server = file:///data/pkg_repo/$arch/$repo/
+
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_disk_testing.png b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_disk_testing.png
new file mode 100755
index 0000000..5c16d93
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_disk_testing.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_release.pacman b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_release.pacman
new file mode 100644
index 0000000..c822544
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_release.pacman
@@ -0,0 +1,7 @@
+[core]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
+
+[extra]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_release.png b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_release.png
new file mode 100755
index 0000000..3493d0c
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_release.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_testing.pacman b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_testing.pacman
new file mode 100644
index 0000000..24f06d6
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_testing.pacman
@@ -0,0 +1,7 @@
+[core-testing]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
+
+[extra-testing]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_testing.png b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_testing.png
new file mode 100755
index 0000000..7d7972f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/local_mirror_testing.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.i686 b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.i686
new file mode 100644
index 0000000..6012e7c
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.i686
@@ -0,0 +1,46 @@
+aif
+b43-fwcutter
+btrfs-progs
+crda
+darkhttpd
+ddrescue
+dhclient
+dialog
+dmraid
+dnsmasq
+dnsutils
+dosfstools
+efibootmgr
+elinks
+gnu-netcat
+gptfdisk
+haveged
+hdparm
+ipw2100-fw
+ipw2200-fw
+irssi
+lftp
+lilo
+linux-atm
+mtools
+netcfg
+nfs-utils
+nilfs-utils
+nmap
+ntfs-3g
+ntfsprogs
+ntp
+openconnect
+openssh
+openvpn
+parted
+pptpclient
+rp-pppoe
+rsync
+smartmontools
+speedtouch
+tcpdump
+vpnc
+wireless_tools
+wpa_actiond
+zd1211-firmware
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.x86_64 b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.x86_64
new file mode 100644
index 0000000..e5d5600
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.x86_64
@@ -0,0 +1,153 @@
+#sysvinit
+initscripts
+#b43-fwcutter
+acpid
+btrfs-progs
+crda
+#darkhttpd
+ddrescue
+#dhclient
+dhcpcd
+dialog
+dmraid
+#dnsmasq
+dnsutils
+dcron
+dosfstools
+dvb-firmware
+efibootmgr
+#elinks
+#gnu-netcat
+gptfdisk
+#fluxbox
+plymouth
+plymouth-theme-linhes-logo
+#haveged
+libhdhomerun
+hdparm
+ipw2100-fw
+ipw2200-fw
+iputils
+#irssi
+#lftp
+#lilo
+#linux-atm
+lirc
+mtools
+#netcfg
+net-tools
+nfs-utils
+nilfs-utils
+#nmap
+#ntfs-3g
+#ntfsprogs
+ntp
+#openconnect
+openssh
+#openvpn
+parted
+#pptpclient
+#rp-pppoe
+rsync
+#smartmontools
+#speedtouch
+#tcpdump
+#vpnc
+v86d
+wireless_tools
+wpa_actiond
+zd1211-firmware
+python2
+LinHES-config
+bc
+libstatgrab
+mysql-python
+expect
+curl
+dnsutils
+parted
+sg3_utils
+nmbscan
+squashfs-tools
+rsync
+python-parted
+python2-pexpect
+python-netifaces
+python-iplib
+xorg-apps
+xorg-fonts
+windowmaker
+xf86-video-vesa
+xorg-xinit
+xorg-server
+xorg-bdftopcf
+xorg-docs
+xorg-font-util
+xorg-fonts-100dpi
+#xorg-fonts-75dpi
+xorg-fonts-encodings
+xorg-iceauth
+xorg-luit
+xorg-mkfontdir
+xorg-mkfontscale
+#xorg-res-utils
+xorg-server
+xorg-sessreg
+xorg-setxkbmap
+xorg-x11perf
+xorg-xauth
+xorg-xbacklight
+xorg-xcmsdb
+xorg-xcursorgen
+xorg-xdpyinfo
+xorg-xdriinfo
+xorg-xev
+#xorg-xgamma
+xorg-xhost
+xorg-xinput
+xorg-xkbcomp
+xorg-xkbevd
+xorg-xkbutils
+xorg-xkill
+xorg-xlsatoms
+xorg-xlsclients
+xorg-xmodmap
+xorg-xpr
+xorg-xprop
+xorg-xrandr
+xorg-xrdb
+xorg-xrefresh
+xorg-xset
+xorg-xsetroot
+xorg-xvinfo
+xorg-xwd
+xorg-xwininfo
+xorg-xwud
+xterm
+xkeyboard-config
+grub-common
+grub-bios
+LinHES-config
+LinHES-system
+mythtv
+mysql
+etcnet
+#alt_wm
+e16_theme_settings
+wmaker_settings
+mlocate
+
+mythinstall
+mytharchive
+mythbrowser
+mythgallery
+mythgame
+mythmusic
+mythnews
+mythweather
+linhes-theme
+
+ivtv-utils
+alsa-utils
+
+ceton_infinitv
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.x86_64.cache b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.x86_64.cache
new file mode 100644
index 0000000..a989fdb
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/packages.x86_64.cache
@@ -0,0 +1,28 @@
+runit-scripts
+mythdb-initial
+mythnetvision
+tigervnc
+x11vnc
+nvidia
+nvidia-utils
+vdpauinfo
+lighttpd
+mythweb
+nfs-utils
+samba
+mplayer
+lcdproc
+mythappletrailers
+xscreensaver
+supplemental-web
+supplemental-web-slave
+#romdb
+#miro
+oss
+xf86-input-vmmouse
+xf86-video-vmware
+xf86-video-vesa
+xf86-video-intel
+libgl
+svga-dri
+nss-mdns
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/pacman.conf b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/pacman.conf
new file mode 100644
index 0000000..46538e9
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/pacman.conf
@@ -0,0 +1,70 @@
+#
+# /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 = /data/storage/disk0/pacman/pkg
+#LogFile = /var/log/pacman.log
+#GPGDir = /etc/pacman.d/gnupg/
+HoldPkg = pacman glibc
+#XferCommand = /usr/bin/curl -C - -f %u > %o
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+#CleanMethod = KeepInstalled
+Architecture = auto
+
+# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
+#IgnorePkg =
+#IgnoreGroup =
+
+#NoUpgrade =
+#NoExtract =
+
+# Misc options
+#UseSyslog
+#UseDelta
+#TotalDownload
+# We cannot check disk space from within a chroot environment
+#CheckSpace
+VerbosePkgLists
+
+# By default, pacman accepts packages signed by keys that its local keyring
+# trusts (see pacman-key and its man page), as well as unsigned packages.
+SigLevel = Optional TrustedOnly
+
+# NOTE: You must run `pacman-key --init` before first using pacman; the local
+# keyring can then be populated with the keys of all official Arch Linux
+# packagers with `pacman-key --populate archlinux`.
+
+#
+# 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
+# - URLs will have $arch replaced by the name of the architecture
+#
+# 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.
+
+
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/pristine.list b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/pristine.list
new file mode 100644
index 0000000..8d732d6
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/pristine.list
@@ -0,0 +1,2 @@
+./etc/hosts
+./etc/rc.local
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_release.pacman b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_release.pacman
new file mode 100644
index 0000000..e9ace81
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_release.pacman
@@ -0,0 +1,7 @@
+[core]
+SigLevel = Optional TrustedOnly
+Server = http://bits.linhes.org/repo/$arch/$repo/
+
+[extra]
+SigLevel = Optional TrustedOnly
+Server = http://bits.linhes.org/repo/$arch/$repo/
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_release.png b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_release.png
new file mode 100755
index 0000000..fcbadd7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_release.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_testing.pacman b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_testing.pacman
new file mode 100644
index 0000000..000e6a1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_testing.pacman
@@ -0,0 +1,7 @@
+[core-testing]
+SigLevel = Optional TrustedOnly
+Server = http://bits.linhes.org/repo/$arch/$repo/
+
+[extra-testing]
+SigLevel = Optional TrustedOnly
+Server = http://bits.linhes.org/repo/$arch/$repo/
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_testing.png b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_testing.png
new file mode 100755
index 0000000..56b8978
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/profile_files/remote_testing.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/arch-release b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/arch-release
new file mode 100644
index 0000000..d899e29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/arch-release
@@ -0,0 +1 @@
+MythVantage Live/Installation
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/archiso/functions b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/archiso/functions
new file mode 100644
index 0000000..9fffdcb
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/archiso/functions
@@ -0,0 +1,20 @@
+# vim: set ft=sh:
+
+# kernel_cmdline <param> <default>
+# Looks for a parameter on the kernel's boot-time command line.
+#
+# returns: 0 if param was found. Also prints its value if it was a K=V param.
+# 1 if it was not. Also prints value passed as <default>
+#
+kernel_cmdline ()
+{
+ for param in $(/bin/cat /proc/cmdline); do
+ case "${param}" in
+ $1=*) echo "${param##*=}"; return 0 ;;
+ $1) return 0 ;;
+ *) continue ;;
+ esac
+ done
+ [ -n "${2}" ] && echo "${2}"
+ return 1
+}
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/conf.d/dhcpcd b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/conf.d/dhcpcd
new file mode 100644
index 0000000..ab53c30
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/conf.d/dhcpcd
@@ -0,0 +1,6 @@
+#
+# Arguments to be passed to the DHCP client daemon
+#
+
+DHCPCD_ARGS="-t 10 -h $HOSTNAME"
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hostname b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hostname
new file mode 100644
index 0000000..a616f6e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hostname
@@ -0,0 +1 @@
+apheleia
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts
new file mode 100644
index 0000000..d23291e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts
@@ -0,0 +1,9 @@
+#
+# /etc/hosts: static lookup table for host names
+#
+
+#<ip-address> <hostname.domain.org> <hostname>
+127.0.0.1 localhost.localdomain localhost archiso
+::1 localhost.localdomain localhost archiso
+
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts.allow b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts.allow
new file mode 100755
index 0000000..f6cf005
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts.allow
@@ -0,0 +1,8 @@
+#
+# /etc/hosts.allow
+#
+ALL: 192.168.
+ALL: 10.
+ALL: 127.0.0.1
+ALL: 172.16.
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts.deny b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/inittab b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/inittab
new file mode 100644
index 0000000..1e65b5e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/inittab
@@ -0,0 +1,48 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:3:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+#c1:2345:respawn:/sbin/agetty -8 -s -n -l /usr/bin/autologin 38400 tty1 linux
+c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
+c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
+c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
+c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
+c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
+
+# Serial Virtual Console for KVM and others VMs
+#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
+
+# Hypervisor Virtual Console for Xen and KVM
+#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/usr/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
+
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/issue b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/issue
new file mode 100644
index 0000000..9b082c4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/issue
@@ -0,0 +1,5 @@
+
+MythVantage Live ISO (\l)
+\s-\r \m.
+Default logins "root" and "mythtv" have no password.
+To begin installation, login as root.
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/locale.conf b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/locale.conf
new file mode 100644
index 0000000..a8e6e6f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/locale.conf
@@ -0,0 +1 @@
+LOCALE="en_US.UTF-8"
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/locale.gen b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/locale.gen
new file mode 100644
index 0000000..9fe42e0
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/locale.gen
@@ -0,0 +1,462 @@
+## Configuration file for locale-gen
+##
+## lists of locales that are to be generated by the locale-gen command.
+##
+## Each line is of the form:
+##
+## <locale> <charset>
+##
+## where <locale> is one of the locales given in /usr/share/i18n/locales
+## and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
+##
+## Examples:
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
+de_DE ISO-8859-1
+de_DE@euro ISO-8859-15
+##
+## The locale-gen command will generate all the locales,
+## placing them in /usr/lib/locale.
+##
+## A list of supported locales is included in this file.
+## Uncomment the ones you need.
+##
+## This file names the currently supported and somewhat tested locales.
+## If you have any additions please file a glibc bug report.
+#
+#aa_DJ.UTF-8 UTF-8
+#aa_DJ ISO-8859-1
+#aa_ER UTF-8
+#aa_ER@saaho UTF-8
+#aa_ET UTF-8
+#af_ZA.UTF-8 UTF-8
+#af_ZA ISO-8859-1
+#am_ET UTF-8
+#an_ES.UTF-8 UTF-8
+#an_ES ISO-8859-15
+#ar_AE.UTF-8 UTF-8
+#ar_AE ISO-8859-6
+#ar_BH.UTF-8 UTF-8
+#ar_BH ISO-8859-6
+#ar_DZ.UTF-8 UTF-8
+#ar_DZ ISO-8859-6
+#ar_EG.UTF-8 UTF-8
+#ar_EG ISO-8859-6
+#ar_IN UTF-8
+#ar_IQ.UTF-8 UTF-8
+#ar_IQ ISO-8859-6
+#ar_JO.UTF-8 UTF-8
+#ar_JO ISO-8859-6
+#ar_KW.UTF-8 UTF-8
+#ar_KW ISO-8859-6
+#ar_LB.UTF-8 UTF-8
+#ar_LB ISO-8859-6
+#ar_LY.UTF-8 UTF-8
+#ar_LY ISO-8859-6
+#ar_MA.UTF-8 UTF-8
+#ar_MA ISO-8859-6
+#ar_OM.UTF-8 UTF-8
+#ar_OM ISO-8859-6
+#ar_QA.UTF-8 UTF-8
+#ar_QA ISO-8859-6
+#ar_SA.UTF-8 UTF-8
+#ar_SA ISO-8859-6
+#ar_SD.UTF-8 UTF-8
+#ar_SD ISO-8859-6
+#ar_SY.UTF-8 UTF-8
+#ar_SY ISO-8859-6
+#ar_TN.UTF-8 UTF-8
+#ar_TN ISO-8859-6
+#ar_YE.UTF-8 UTF-8
+#ar_YE ISO-8859-6
+#az_AZ UTF-8
+#as_IN UTF-8
+#ast_ES.UTF-8 UTF-8
+#ast_ES ISO-8859-15
+#be_BY.UTF-8 UTF-8
+#be_BY CP1251
+#be_BY@latin UTF-8
+#bem_ZM UTF-8
+#ber_DZ UTF-8
+#ber_MA UTF-8
+#bg_BG.UTF-8 UTF-8
+#bg_BG CP1251
+#bho_IN UTF-8
+#bn_BD UTF-8
+#bn_IN UTF-8
+#bo_CN UTF-8
+#bo_IN UTF-8
+#br_FR.UTF-8 UTF-8
+#br_FR ISO-8859-1
+#br_FR@euro ISO-8859-15
+#brx_IN UTF-8
+#bs_BA.UTF-8 UTF-8
+#bs_BA ISO-8859-2
+#byn_ER UTF-8
+#ca_AD.UTF-8 UTF-8
+#ca_AD ISO-8859-15
+#ca_ES.UTF-8 UTF-8
+#ca_ES ISO-8859-1
+#ca_ES@euro ISO-8859-15
+#ca_FR.UTF-8 UTF-8
+#ca_FR ISO-8859-15
+#ca_IT.UTF-8 UTF-8
+#ca_IT ISO-8859-15
+#crh_UA UTF-8
+#cs_CZ.UTF-8 UTF-8
+#cs_CZ ISO-8859-2
+#csb_PL UTF-8
+#cv_RU UTF-8
+#cy_GB.UTF-8 UTF-8
+#cy_GB ISO-8859-14
+#da_DK.UTF-8 UTF-8
+#da_DK ISO-8859-1
+#de_AT.UTF-8 UTF-8
+#de_AT ISO-8859-1
+#de_AT@euro ISO-8859-15
+#de_BE.UTF-8 UTF-8
+#de_BE ISO-8859-1
+#de_BE@euro ISO-8859-15
+#de_CH.UTF-8 UTF-8
+#de_CH ISO-8859-1
+#de_DE.UTF-8 UTF-8
+#de_DE ISO-8859-1
+#de_DE@euro ISO-8859-15
+#de_LU.UTF-8 UTF-8
+#de_LU ISO-8859-1
+#de_LU@euro ISO-8859-15
+#dv_MV UTF-8
+#dz_BT UTF-8
+#el_GR.UTF-8 UTF-8
+#el_GR ISO-8859-7
+#el_CY.UTF-8 UTF-8
+#el_CY ISO-8859-7
+#en_AG UTF-8
+#en_AU.UTF-8 UTF-8
+#en_AU ISO-8859-1
+#en_BW.UTF-8 UTF-8
+#en_BW ISO-8859-1
+#en_CA.UTF-8 UTF-8
+#en_CA ISO-8859-1
+#en_DK.UTF-8 UTF-8
+#en_DK ISO-8859-1
+#en_GB.UTF-8 UTF-8
+#en_GB ISO-8859-1
+#en_HK.UTF-8 UTF-8
+#en_HK ISO-8859-1
+#en_IE.UTF-8 UTF-8
+#en_IE ISO-8859-1
+#en_IE@euro ISO-8859-15
+#en_IN UTF-8
+#en_NG UTF-8
+#en_NZ.UTF-8 UTF-8
+#en_NZ ISO-8859-1
+#en_PH.UTF-8 UTF-8
+#en_PH ISO-8859-1
+#en_SG.UTF-8 UTF-8
+#en_SG ISO-8859-1
+#en_US.UTF-8 UTF-8
+#en_US ISO-8859-1
+#en_ZA.UTF-8 UTF-8
+#en_ZA ISO-8859-1
+#en_ZM UTF-8
+#en_ZW.UTF-8 UTF-8
+#en_ZW ISO-8859-1
+#es_AR.UTF-8 UTF-8
+#es_AR ISO-8859-1
+#es_BO.UTF-8 UTF-8
+#es_BO ISO-8859-1
+#es_CL.UTF-8 UTF-8
+#es_CL ISO-8859-1
+#es_CO.UTF-8 UTF-8
+#es_CO ISO-8859-1
+#es_CR.UTF-8 UTF-8
+#es_CR ISO-8859-1
+#es_CU UTF-8
+#es_DO.UTF-8 UTF-8
+#es_DO ISO-8859-1
+#es_EC.UTF-8 UTF-8
+#es_EC ISO-8859-1
+#es_ES.UTF-8 UTF-8
+#es_ES ISO-8859-1
+#es_ES@euro ISO-8859-15
+#es_GT.UTF-8 UTF-8
+#es_GT ISO-8859-1
+#es_HN.UTF-8 UTF-8
+#es_HN ISO-8859-1
+#es_MX.UTF-8 UTF-8
+#es_MX ISO-8859-1
+#es_NI.UTF-8 UTF-8
+#es_NI ISO-8859-1
+#es_PA.UTF-8 UTF-8
+#es_PA ISO-8859-1
+#es_PE.UTF-8 UTF-8
+#es_PE ISO-8859-1
+#es_PR.UTF-8 UTF-8
+#es_PR ISO-8859-1
+#es_PY.UTF-8 UTF-8
+#es_PY ISO-8859-1
+#es_SV.UTF-8 UTF-8
+#es_SV ISO-8859-1
+#es_US.UTF-8 UTF-8
+#es_US ISO-8859-1
+#es_UY.UTF-8 UTF-8
+#es_UY ISO-8859-1
+#es_VE.UTF-8 UTF-8
+#es_VE ISO-8859-1
+#et_EE.UTF-8 UTF-8
+#et_EE ISO-8859-1
+#et_EE.ISO-8859-15 ISO-8859-15
+#eu_ES.UTF-8 UTF-8
+#eu_ES ISO-8859-1
+#eu_ES@euro ISO-8859-15
+#fa_IR UTF-8
+#ff_SN UTF-8
+#fi_FI.UTF-8 UTF-8
+#fi_FI ISO-8859-1
+#fi_FI@euro ISO-8859-15
+#fil_PH UTF-8
+#fo_FO.UTF-8 UTF-8
+#fo_FO ISO-8859-1
+#fr_BE.UTF-8 UTF-8
+#fr_BE ISO-8859-1
+#fr_BE@euro ISO-8859-15
+#fr_CA.UTF-8 UTF-8
+#fr_CA ISO-8859-1
+#fr_CH.UTF-8 UTF-8
+#fr_CH ISO-8859-1
+#fr_FR.UTF-8 UTF-8
+#fr_FR ISO-8859-1
+#fr_FR@euro ISO-8859-15
+#fr_LU.UTF-8 UTF-8
+#fr_LU ISO-8859-1
+#fr_LU@euro ISO-8859-15
+#fur_IT UTF-8
+#fy_NL UTF-8
+#fy_DE UTF-8
+#ga_IE.UTF-8 UTF-8
+#ga_IE ISO-8859-1
+#ga_IE@euro ISO-8859-15
+#gd_GB.UTF-8 UTF-8
+#gd_GB ISO-8859-15
+#gez_ER UTF-8
+#gez_ER@abegede UTF-8
+#gez_ET UTF-8
+#gez_ET@abegede UTF-8
+#gl_ES.UTF-8 UTF-8
+#gl_ES ISO-8859-1
+#gl_ES@euro ISO-8859-15
+#gu_IN UTF-8
+#gv_GB.UTF-8 UTF-8
+#gv_GB ISO-8859-1
+#ha_NG UTF-8
+#he_IL.UTF-8 UTF-8
+#he_IL ISO-8859-8
+#hi_IN UTF-8
+#hne_IN UTF-8
+#hr_HR.UTF-8 UTF-8
+#hr_HR ISO-8859-2
+#hsb_DE ISO-8859-2
+#hsb_DE.UTF-8 UTF-8
+#ht_HT UTF-8
+#hu_HU.UTF-8 UTF-8
+#hu_HU ISO-8859-2
+#hy_AM UTF-8
+#hy_AM.ARMSCII-8 ARMSCII-8
+#id_ID.UTF-8 UTF-8
+#id_ID ISO-8859-1
+#ig_NG UTF-8
+#ik_CA UTF-8
+#is_IS.UTF-8 UTF-8
+#is_IS ISO-8859-1
+#it_CH.UTF-8 UTF-8
+#it_CH ISO-8859-1
+#it_IT.UTF-8 UTF-8
+#it_IT ISO-8859-1
+#it_IT@euro ISO-8859-15
+#iu_CA UTF-8
+#iw_IL.UTF-8 UTF-8
+#iw_IL ISO-8859-8
+#ja_JP.EUC-JP EUC-JP
+#ja_JP.UTF-8 UTF-8
+#ka_GE.UTF-8 UTF-8
+#ka_GE GEORGIAN-PS
+#kk_KZ.UTF-8 UTF-8
+#kk_KZ PT154
+#kl_GL.UTF-8 UTF-8
+#kl_GL ISO-8859-1
+#km_KH UTF-8
+#kn_IN UTF-8
+#ko_KR.EUC-KR EUC-KR
+#ko_KR.UTF-8 UTF-8
+#kok_IN UTF-8
+#ks_IN UTF-8
+#ks_IN@devanagari UTF-8
+#ku_TR.UTF-8 UTF-8
+#ku_TR ISO-8859-9
+#kw_GB.UTF-8 UTF-8
+#kw_GB ISO-8859-1
+#ky_KG UTF-8
+#lb_LU UTF-8
+#lg_UG.UTF-8 UTF-8
+#lg_UG ISO-8859-10
+#li_BE UTF-8
+#li_NL UTF-8
+#lij_IT UTF-8
+#lo_LA UTF-8
+#lt_LT.UTF-8 UTF-8
+#lt_LT ISO-8859-13
+#lv_LV.UTF-8 UTF-8
+#lv_LV ISO-8859-13
+#mai_IN UTF-8
+#mg_MG.UTF-8 UTF-8
+#mg_MG ISO-8859-15
+#mhr_RU UTF-8
+#mi_NZ.UTF-8 UTF-8
+#mi_NZ ISO-8859-13
+#mk_MK.UTF-8 UTF-8
+#mk_MK ISO-8859-5
+#ml_IN UTF-8
+#mn_MN UTF-8
+#mr_IN UTF-8
+#ms_MY.UTF-8 UTF-8
+#ms_MY ISO-8859-1
+#mt_MT.UTF-8 UTF-8
+#mt_MT ISO-8859-3
+#my_MM UTF-8
+#nan_TW@latin UTF-8
+#nb_NO.UTF-8 UTF-8
+#nb_NO ISO-8859-1
+#nds_DE UTF-8
+#nds_NL UTF-8
+#ne_NP UTF-8
+#nl_AW UTF-8
+#nl_BE.UTF-8 UTF-8
+#nl_BE ISO-8859-1
+#nl_BE@euro ISO-8859-15
+#nl_NL.UTF-8 UTF-8
+#nl_NL ISO-8859-1
+#nl_NL@euro ISO-8859-15
+#nn_NO.UTF-8 UTF-8
+#nn_NO ISO-8859-1
+#nr_ZA UTF-8
+#nso_ZA UTF-8
+#oc_FR.UTF-8 UTF-8
+#oc_FR ISO-8859-1
+#om_ET UTF-8
+#om_KE.UTF-8 UTF-8
+#om_KE ISO-8859-1
+#or_IN UTF-8
+#os_RU UTF-8
+#pa_IN UTF-8
+#pa_PK UTF-8
+#pap_AN UTF-8
+#pl_PL.UTF-8 UTF-8
+#pl_PL ISO-8859-2
+#ps_AF UTF-8
+#pt_BR.UTF-8 UTF-8
+#pt_BR ISO-8859-1
+#pt_PT.UTF-8 UTF-8
+#pt_PT ISO-8859-1
+#pt_PT@euro ISO-8859-15
+#ro_RO.UTF-8 UTF-8
+#ro_RO ISO-8859-2
+#ru_RU.KOI8-R KOI8-R
+#ru_RU.UTF-8 UTF-8
+#ru_RU ISO-8859-5
+#ru_UA.UTF-8 UTF-8
+#ru_UA KOI8-U
+#rw_RW UTF-8
+#sa_IN UTF-8
+#sc_IT UTF-8
+#sd_IN UTF-8
+#sd_IN@devanagari UTF-8
+#se_NO UTF-8
+#shs_CA UTF-8
+#si_LK UTF-8
+#sid_ET UTF-8
+#sk_SK.UTF-8 UTF-8
+#sk_SK ISO-8859-2
+#sl_SI.UTF-8 UTF-8
+#sl_SI ISO-8859-2
+#so_DJ.UTF-8 UTF-8
+#so_DJ ISO-8859-1
+#so_ET UTF-8
+#so_KE.UTF-8 UTF-8
+#so_KE ISO-8859-1
+#so_SO.UTF-8 UTF-8
+#so_SO ISO-8859-1
+#sq_AL.UTF-8 UTF-8
+#sq_AL ISO-8859-1
+#sq_MK UTF-8
+#sr_ME UTF-8
+#sr_RS UTF-8
+#sr_RS@latin UTF-8
+#ss_ZA UTF-8
+#st_ZA.UTF-8 UTF-8
+#st_ZA ISO-8859-1
+#sv_FI.UTF-8 UTF-8
+#sv_FI ISO-8859-1
+#sv_FI@euro ISO-8859-15
+#sv_SE.UTF-8 UTF-8
+#sv_SE ISO-8859-1
+#sw_KE UTF-8
+#sw_TZ UTF-8
+#ta_IN UTF-8
+#ta_LK UTF-8
+#te_IN UTF-8
+#tg_TJ.UTF-8 UTF-8
+#tg_TJ KOI8-T
+#th_TH.UTF-8 UTF-8
+#th_TH TIS-620
+#ti_ER UTF-8
+#ti_ET UTF-8
+#tig_ER UTF-8
+#tk_TM UTF-8
+#tl_PH.UTF-8 UTF-8
+#tl_PH ISO-8859-1
+#tn_ZA UTF-8
+#tr_CY.UTF-8 UTF-8
+#tr_CY ISO-8859-9
+#tr_TR.UTF-8 UTF-8
+#tr_TR ISO-8859-9
+#ts_ZA UTF-8
+#tt_RU UTF-8
+#tt_RU@iqtelif UTF-8
+#ug_CN UTF-8
+#uk_UA.UTF-8 UTF-8
+#uk_UA KOI8-U
+#unm_US UTF-8
+#ur_IN UTF-8
+#ur_PK UTF-8
+#uz_UZ ISO-8859-1
+#uz_UZ@cyrillic UTF-8
+#ve_ZA UTF-8
+#vi_VN.TCVN TCVN5712-1
+#vi_VN UTF-8
+#wa_BE ISO-8859-1
+#wa_BE@euro ISO-8859-15
+#wa_BE.UTF-8 UTF-8
+#wae_CH UTF-8
+#wal_ET UTF-8
+#wo_SN UTF-8
+#xh_ZA.UTF-8 UTF-8
+#xh_ZA ISO-8859-1
+#yi_US.UTF-8 UTF-8
+#yi_US CP1255
+#yo_NG UTF-8
+#yue_HK UTF-8
+#zh_CN.GB18030 GB18030
+#zh_CN.GBK GBK
+#zh_CN.UTF-8 UTF-8
+#zh_CN GB2312
+#zh_HK.UTF-8 UTF-8
+#zh_HK BIG5-HKSCS
+#zh_SG.UTF-8 UTF-8
+#zh_SG.GBK GBK
+#zh_SG GB2312
+#zh_TW.EUC-TW EUC-TW
+#zh_TW.UTF-8 UTF-8
+#zh_TW BIG5
+#zu_ZA.UTF-8 UTF-8
+#zu_ZA ISO-8859-1
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/nsswitch.conf b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/nsswitch.conf
new file mode 100644
index 0000000..2c66b68
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/nsswitch.conf
@@ -0,0 +1,19 @@
+# Begin /etc/nsswitch.conf
+
+passwd: files
+group: files
+shadow: files
+
+publickey: files
+
+hosts: files mdns4_minimal dns mdns4
+networks: files
+
+protocols: files
+services: files
+ethers: files
+rpc: files
+
+netgroup: files
+
+# End /etc/nsswitch.conf
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/pam.d/su b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/pam.d/su
new file mode 100644
index 0000000..a291042
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/pam.d/su
@@ -0,0 +1,6 @@
+#%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/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.conf b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.conf
new file mode 100644
index 0000000..b4a9e46
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.conf
@@ -0,0 +1,7 @@
+USECOLOR="no"
+LOCALE_DEFAULT="en_US.UTF-8"
+DAEMON_LOCALE_DEFAULT="no"
+CLOCK_DEFAULT="UTC"
+TIMEZONE_DEFAULT="UTC"
+KEYMAP_DEFAULT="us"
+USECOLOR_DEFAULT="no"
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.d/functions.d/symlink_used_block_devices b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.d/functions.d/symlink_used_block_devices
new file mode 100644
index 0000000..f6b6062
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.d/functions.d/symlink_used_block_devices
@@ -0,0 +1,7 @@
+symlink_used_block_devices()
+{
+ mkdir /run/aif
+ ln -s /run/archiso/used_block_devices /run/aif/ignore_block_devices
+}
+
+add_hook multi_end symlink_used_block_devices
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.d/pacman-init b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.d/pacman-init
new file mode 100755
index 0000000..bbbd719
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.d/pacman-init
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+ start)
+ stat_busy "Initializing pacman keyring"
+ if { pacman-key --init && pacman-key --populate archlinux; } &>/dev/null; then
+ add_daemon pacman-init
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+
+ stop)
+ stat_busy "Removing pacman keyring"
+ rm -rf /etc/pacman.d/gnupg
+ rm_daemon pacman-init
+ stat_done
+ ;;
+
+ restart)
+ $0 stop
+ $0 start
+ ;;
+
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+
+exit 0
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.local b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.local
new file mode 100755
index 0000000..6e49dc1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/rc.local
@@ -0,0 +1,112 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/profile
+. ${MV_ROOT}/bin/install_functions.sh
+
+function mysql_check {
+ mysql -e "show databases;" 2>/dev/null >/dev/null
+ return $?
+}
+
+function mythconverg_check {
+ mysql mythconverg -e "describe settings;" 2>/dev/null >/dev/null
+ return $?
+}
+
+function install_db {
+ pacman --noconfirm -R mythdb-initial 2>/dev/null > /dev/null
+ pacman -S --noconfirm mythdb-initial 2>/dev/null > /dev/null
+}
+
+
+#set bootdev.txt for shutdown eject in archiso_shutdown
+mount|grep bootmnt|cut -f1 -d" " > /run/initramfs/bootdev.txt
+cp -f /usr/bin/eject /run/initramfs/usr/bin/eject
+
+#check to see if mysql is running
+stat_busy "Checking Mysql"
+ATTEMPT=0
+mysql_check && printhl " Installing the initial database" &&install_db
+mythconverg_check
+status=$?
+while [ ! $status = 0 ]
+do
+ /etc/rc.d/mysqld start
+ mysqlstatus=$?
+ if [ $mysqlstatus = 0 ]
+ then
+ mysql_check && install_db
+ mythconverg_check
+ status=$?
+ else
+ ((ATTEMPT=ATTEMPT+1))
+ /etc/rc.d/mysqld stop
+ sleep 2
+ fi
+ if [ $ATTEMPT = 20 ]
+ then
+ printhl " Could not start mysql or install mythconverg within 20 attempts"
+ printhl " Aborting install"
+ exit 20
+ fi
+done
+stat_done
+
+#check network parms
+stat_busy "Checking network"
+init_network
+stat_done
+
+stat_busy "Probing network"
+request_dhcp &
+stat_done
+
+#save some cmdline options
+stat_busy "Parsing command line"
+parse_cmdline_2_db
+bootsplash_setup
+stat_done
+
+#search for remote
+stat_busy "Checking for remote"
+init_remote
+stat_done
+printhl "Finished"
+
+#creating /myth for live cd
+. /usr/MythVantage/bin/mv_config.py
+HDIR=`dirname $MYTHHOME`
+mkdir -p $HDIR
+useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv
+chown -R mythtv.mythtv $MYTHHOME
+#creating mountpoint for live cd
+mkdir -p $DATAMOUNT
+create_media_dirs.sh $DATAMOUNT
+chown -R mythtv.mythtv $DATAMOUNT/media
+
+
+
+printhl "Finished"
+/etc/rc.d/dbus start
+/etc/rc.d/avahi-daemon start
+echo $CMDLINE | grep -qi NoX
+if [ $? = 0 ]
+then
+ echo ""
+ printhl "No auto X option found"
+ # /usr/bin/chvt 2
+else
+ /root/startx &
+fi
+
+# Set up automatically logged in user
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+#sh /usr/bin/go.sh &
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/sudoers.d/g_wheel b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/sudoers.d/g_wheel
new file mode 100755
index 0000000..8c45359
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/sudoers.d/g_wheel
@@ -0,0 +1 @@
+%wheel ALL=(ALL) NOPASSWD: ALL
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/vconsole.conf b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/vconsole.conf
new file mode 100644
index 0000000..d89ef8a
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/etc/vconsole.conf
@@ -0,0 +1 @@
+CONSOLEMAP="8859-1"
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/go.sh b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/go.sh
new file mode 100755
index 0000000..49ccad8
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/go.sh
@@ -0,0 +1,40 @@
+#!/bin/bash
+#This script is run after data is copied, but before configuration.
+
+. /usr/MythVantage/bin/mv_config.py
+
+PD="/root/.post_process"
+pacman -S --force --noconfirm runit-scripts
+
+HDIR=`dirname $MYTHHOME`
+mkdir -p $HDIR
+useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv
+
+
+
+chown -R mythtv.mythtv $MYTHHOME
+
+#creating /myth for live cd
+mkdir -p $DATAMOUNT
+create_media_dirs.sh $DATAMOUNT
+chown -R mythtv.mythtv $DATAMOUNT/media
+
+
+
+python2 /root/.post_process/locale.py
+echo "generating locales"
+/usr/sbin/locale-gen
+
+rm -f /etc/issue
+ln -s /etc/LinHES-release /etc/issue
+
+#remove files
+rm -f /root/LinHES-install.sh
+rm -f /root/startx
+rm -f /root/.directory
+
+
+#cp -rvpf /.post_process/home/mythtv /home/
+#cp -rvpf /.post_process/home/mythtv/.fluxbox /root
+#cp -vpf /.post_process/nouveau.conf /etc/modprobe.d/nouveau.conf
+mv $PD $PD.old
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/locale.py b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/locale.py
new file mode 100644
index 0000000..70cfcbd
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/locale.py
@@ -0,0 +1,23 @@
+def genlocale():
+ #logging.info("Generating locales")
+ locale_list=[ "en_US ISO-8859-1", "en_US.UTF-8 UTF-8" , "de_DE.UTF-8", "da_DK.utf8", "en_DK.utf8", "it_IT.utf8", "de_DE.UTF-8"]
+ #locale_list=['UTF-8', 'en_US ISO-8859-1']
+
+ localefile="/etc/locale.gen"
+ f = open(localefile)
+ lines = f.readlines()
+ f.close()
+
+ f = open(localefile,'w')
+
+ for line in lines:
+ outline = line
+ for locale in locale_list:
+ #print locale, line
+ if locale in line:
+ outline = line.replace('#','')
+ f.write(outline)
+
+ f.close
+
+genlocale()
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/menu.lst b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/menu.lst
new file mode 100755
index 0000000..0ecc2a7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M quiet vga=0x314 splash=silent,theme:linhes console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title LinHES-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x314 splash=silent,theme:linhes console=tty1 nox
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/rc.conf b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/rc.conf
new file mode 100755
index 0000000..43a275f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/.post_process/rc.conf
@@ -0,0 +1,71 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf-8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="yes"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="!soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="!soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST_=($ALSABLACKLIST !snd-pcsp !nouveau)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=($MOD_BLACKLIST_)
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(fbsplash !syslog-ng !hotplug !pcmcia !network !mysqld dbus avahi-daemon)
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/LinHES-install.sh b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/LinHES-install.sh
new file mode 100755
index 0000000..2b0cdb2
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/LinHES-install.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+#redirect stderr to stdout, then rediret stdout to file
+. /etc/profile
+exec 2>&1
+exec > /tmp/mythvantage_install.log
+#/usr/bin/nvidia-settings -a InitialPixmapPlacement=2
+#keylaunch &
+#/usr/bin/tilda &
+#/usr/X11R6/bin/unclutter -root -idle 0 -jitter 400 -noevents &
+export MALLOC_CHECK_=0
+
+WM="e16 -P /usr/share/wm_data/e16_config_dir/"
+$WM &
+pid=$!
+
+xset s off
+xset -dpms
+xhost +
+xdotool mousemove 0 0
+
+cp -f /etc/keylaunchrc /root/.keylaunchrc
+/usr/bin/keylaunch &
+
+
+CMDLINE=$(cat /proc/cmdline)
+echo $CMDLINE |grep -q nfsroot
+NFSROOT=$?
+echo $CMDLINE |grep -q clean_upgrade
+if [ $? = 0 ]
+then
+ export CLEAN_UPGRADE=YES
+else
+ export CLEAN_UPGRADE=NO
+fi
+
+#show the readme
+MythVantage -r
+
+if [ x$NFSROOT = x1 ]
+then
+ unbuffer MythVantage -L &
+else
+ NETBOOT=YES MythVantage &
+fi
+
+
+wait $pid
+
+
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/startx b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/startx
new file mode 100755
index 0000000..068263f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/root/startx
@@ -0,0 +1,35 @@
+#!/bin/bash
+. /etc/profile
+
+export USER=root
+export HOME=/root
+
+CMDLINE=$(cat /proc/cmdline)
+TEMPVAR=${CMDLINE#*ip=}
+IP=${TEMPVAR%% *}
+echo $CMDLINE |grep -q vnc
+USEVNC=$?
+
+if [ x$USEVNC = x1 ]
+then
+ RUNP=1 $MV_ROOT/bin/xconfig.sh 2>/dev/null
+ startx /root/LinHES-install.sh -- -logverbose 6 -allowMouseOpenFail 2>/tmp/x.log
+else
+ #VNC
+ pacman -S --force --noconfirm tigervnc
+ /etc/rc.d/dbus start
+ cp -f $TEMPLATES/vnc.service /etc/avahi/services/
+ /etc/rc.d/avahi-daemon start
+ cd /root
+ mkdir .vnc
+ echo 54321 |vncpasswd -f > /root/.vnc/passwd
+ chmod 500 /root/.vnc/passwd
+ rm -f /root/.vnc/xstartup 2>/dev/null
+ ln -s /root/LinHES-install.sh /root/.vnc/xstartup
+ vncserver
+ echo "The VNC server password is: 54321"
+ echo "Please connect to one of these ip's"
+ echo "-------------------------------------------"
+ ip addr show |grep "inet" |grep -v inet6|cut -d\/ -f1
+ echo "-------------------------------------------"
+fi
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/usr/bin/autologin b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/usr/bin/autologin
new file mode 100755
index 0000000..c124f9e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/usr/bin/autologin
@@ -0,0 +1,2 @@
+#!/bin/bash
+/bin/login -f root
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/usr/bin/go.sh b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/usr/bin/go.sh
new file mode 100644
index 0000000..e6222e4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/root-image.old_can_be_delted/usr/bin/go.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+/usr/MythVantage/bin/mv_install.py --rootdisk=sda --rootfs=ext3 --rootsize=5000 --datafs=ext3 --datasize=50 --datadisk=sda --swapsize=2 -c full_install
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso.cfg
new file mode 100644
index 0000000..d1817af
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso.cfg
@@ -0,0 +1,11 @@
+DEFAULT select
+
+LABEL select
+COM32 boot/syslinux/whichsys.c32
+APPEND -pxe- pxe -sys- sys -iso- sys
+
+LABEL pxe
+CONFIG boot/syslinux/archiso_pxe_choose.cfg
+
+LABEL sys
+CONFIG boot/syslinux/archiso_sys_choose.cfg
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_head.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_head.cfg
new file mode 100644
index 0000000..81ad26e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_head.cfg
@@ -0,0 +1,25 @@
+SERIAL 0 38400
+UI boot/syslinux/vesamenu.c32
+MENU TITLE Arch Linux
+MENU BACKGROUND boot/syslinux/splash.png
+
+MENU WIDTH 78
+MENU MARGIN 4
+MENU ROWS 7
+MENU VSHIFT 10
+MENU TABMSGROW 14
+MENU CMDLINEROW 14
+MENU HELPMSGROW 16
+MENU HELPMSGENDROW 29
+
+# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
+
+MENU COLOR border 30;44 #40ffffff #a0000000 std
+MENU COLOR title 1;36;44 #9033ccff #a0000000 std
+MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all
+MENU COLOR unsel 37;44 #50ffffff #a0000000 std
+MENU COLOR help 37;40 #c0ffffff #a0000000 std
+MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std
+MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std
+MENU COLOR msg07 37;40 #90ffffff #a0000000 std
+MENU COLOR tabmsg 31;40 #30ffffff #00000000 std
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe32.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe32.cfg
new file mode 100644
index 0000000..14f4aa3
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe32.cfg
@@ -0,0 +1,32 @@
+LABEL arch32_nbd
+TEXT HELP
+Boot the Arch Linux (i686) live medium (Using NBD).
+It allows you to install Arch Linux or perform system maintenance.
+ENDTEXT
+MENU LABEL Boot Arch Linux (i686) (NBD)
+LINUX boot/i686/vmlinuz
+INITRD boot/i686/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% archiso_nbd_srv=${pxeserver}
+SYSAPPEND 3
+
+LABEL arch32_nfs
+TEXT HELP
+Boot the Arch Linux (i686) live medium (Using NFS).
+It allows you to install Arch Linux or perform system maintenance.
+ENDTEXT
+MENU LABEL Boot Arch Linux (i686) (NFS)
+LINUX boot/i686/vmlinuz
+INITRD boot/i686/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archiso_nfs_srv=${pxeserver}:/run/archiso/bootmnt
+SYSAPPEND 3
+
+LABEL arch32_http
+TEXT HELP
+Boot the Arch Linux (i686) live medium (Using HTTP).
+It allows you to install Arch Linux or perform system maintenance.
+ENDTEXT
+MENU LABEL Boot Arch Linux (i686) (HTTP)
+LINUX boot/i686/vmlinuz
+INITRD boot/i686/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/
+SYSAPPEND 3
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe64.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe64.cfg
new file mode 100644
index 0000000..a1cf975
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe64.cfg
@@ -0,0 +1,32 @@
+LABEL arch64_nbd
+TEXT HELP
+Boot the Arch Linux (x86_64) live medium (Using NBD).
+It allows you to install Arch Linux or perform system maintenance.
+ENDTEXT
+MENU LABEL Boot Arch Linux (x86_64) (NBD)
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% archiso_nbd_srv=${pxeserver}
+SYSAPPEND 3
+
+LABEL arch64_nfs
+TEXT HELP
+Boot the Arch Linux (x86_64) live medium (Using NFS).
+It allows you to install Arch Linux or perform system maintenance.
+ENDTEXT
+MENU LABEL Boot Arch Linux (x86_64) (NFS)
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archiso_nfs_srv=${pxeserver}:/run/archiso/bootmnt
+SYSAPPEND 3
+
+LABEL arch64_http
+TEXT HELP
+Boot the Arch Linux (x86_64) live medium (Using HTTP).
+It allows you to install Arch Linux or perform system maintenance.
+ENDTEXT
+MENU LABEL Boot Arch Linux (x86_64) (HTTP)
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/
+SYSAPPEND 3
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_32_inc.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_32_inc.cfg
new file mode 100644
index 0000000..e4115df
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_32_inc.cfg
@@ -0,0 +1,3 @@
+INCLUDE boot/syslinux/archiso_head.cfg
+INCLUDE boot/syslinux/archiso_pxe32.cfg
+INCLUDE boot/syslinux/archiso_tail.cfg
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_both_inc.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_both_inc.cfg
new file mode 100644
index 0000000..1593303
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_both_inc.cfg
@@ -0,0 +1,4 @@
+INCLUDE boot/syslinux/archiso_head.cfg
+INCLUDE boot/syslinux/archiso_pxe64.cfg
+INCLUDE boot/syslinux/archiso_pxe32.cfg
+INCLUDE boot/syslinux/archiso_tail.cfg
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_choose.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_choose.cfg
new file mode 100644
index 0000000..6296065
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_pxe_choose.cfg
@@ -0,0 +1,11 @@
+DEFAULT choose
+
+LABEL choose
+COM32 boot/syslinux/ifcpu64.c32
+APPEND have64 -- nohave64
+
+LABEL have64
+CONFIG boot/syslinux/archiso_pxe_both_inc.cfg
+
+LABEL nohave64
+CONFIG boot/syslinux/archiso_pxe_32_inc.cfg
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys32.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys32.cfg
new file mode 100644
index 0000000..43f839e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys32.cfg
@@ -0,0 +1,9 @@
+LABEL arch32
+TEXT HELP
+Boot the Arch Linux (i686) live medium.
+It allows you to install Arch Linux or perform system maintenance.
+ENDTEXT
+MENU LABEL Boot Arch Linux (i686)
+LINUX boot/i686/vmlinuz
+INITRD boot/i686/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys64.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys64.cfg
new file mode 100644
index 0000000..9d6c4de
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys64.cfg
@@ -0,0 +1,9 @@
+LABEL arch64
+TEXT HELP
+Boot the Arch Linux (x86_64) live medium.
+It allows you to install Arch Linux or perform system maintenance.
+ENDTEXT
+MENU LABEL Boot Arch Linux (x86_64)
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_32_inc.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_32_inc.cfg
new file mode 100644
index 0000000..9e37093
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_32_inc.cfg
@@ -0,0 +1,3 @@
+INCLUDE boot/syslinux/archiso_head.cfg
+INCLUDE boot/syslinux/archiso_sys32.cfg
+INCLUDE boot/syslinux/archiso_tail.cfg
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_both_inc.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_both_inc.cfg
new file mode 100644
index 0000000..e885c40
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_both_inc.cfg
@@ -0,0 +1,4 @@
+INCLUDE boot/syslinux/archiso_head.cfg
+INCLUDE boot/syslinux/archiso_sys64.cfg
+INCLUDE boot/syslinux/archiso_sys32.cfg
+INCLUDE boot/syslinux/archiso_tail.cfg
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_choose.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_choose.cfg
new file mode 100644
index 0000000..24c597a
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_sys_choose.cfg
@@ -0,0 +1,11 @@
+DEFAULT choose
+
+LABEL choose
+COM32 boot/syslinux/ifcpu64.c32
+APPEND have64 -- nohave64
+
+LABEL have64
+CONFIG boot/syslinux/archiso_sys_both_inc.cfg
+
+LABEL nohave64
+CONFIG boot/syslinux/archiso_sys_32_inc.cfg
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_tail.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_tail.cfg
new file mode 100644
index 0000000..e85d8e1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/archiso_tail.cfg
@@ -0,0 +1,27 @@
+LABEL existing
+TEXT HELP
+Boot an existing operating system.
+Press TAB to edit the disk and partition number to boot.
+ENDTEXT
+MENU LABEL Boot existing OS
+COM32 boot/syslinux/chain.c32
+APPEND hd0 0
+
+# http://www.memtest.org/
+LABEL memtest
+MENU LABEL Run Memtest86+ (RAM test)
+LINUX boot/memtest
+
+# http://hdt-project.org/
+LABEL hdt
+MENU LABEL Hardware Information (HDT)
+COM32 boot/syslinux/hdt.c32
+APPEND modules_alias=boot/syslinux/hdt/modalias.gz pciids=boot/syslinux/hdt/pciids.gz
+
+LABEL reboot
+MENU LABEL Reboot
+COM32 boot/syslinux/reboot.c32
+
+LABEL poweroff
+MENU LABEL Power Off
+COM32 boot/syslinux/poweroff.c32
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/splash.png b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/splash.png
new file mode 100644
index 0000000..64b959a
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/splash.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/backup_copy/syslinux/syslinux.cfg b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/syslinux.cfg
new file mode 100644
index 0000000..3ee98de
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/backup_copy/syslinux/syslinux.cfg
@@ -0,0 +1,5 @@
+DEFAULT loadconfig
+
+LABEL loadconfig
+ CONFIG archiso.cfg
+ APPEND ../../
diff --git a/build_tools/archiso-19/mythvantage/build.sh b/build_tools/archiso-19/mythvantage/build.sh
new file mode 100755
index 0000000..6ece158
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/build.sh
@@ -0,0 +1,367 @@
+#!/bin/bash
+mknod -m 660 /dev/loop0 b 7 0
+set -e -u
+
+iso_name=archlinux
+iso_label="ARCH_$(date +%Y%m)"
+iso_version=$(date +%Y.%m.%d)
+install_dir=arch
+work_dir=work
+#out_dir=out
+out_dir=/tmp
+
+arch=$(uname -m)
+verbose=""
+pacman_conf=${work_dir}/pacman.conf
+script_path=$(readlink -f ${0%/*})
+
+pacman_cache_files="data-storage-disk0-pacman-pkg"
+cache_dirs="/data/storage/disk0/pacman/pkg"
+pacman_cache=${cache_dirs}
+
+
+_usage ()
+{
+ echo "usage ${0} [options]"
+ echo
+ echo " General options:"
+ echo " -N <iso_name> Set an iso filename (prefix)"
+ echo " Default: ${iso_name}"
+ echo " -V <iso_version> Set an iso version (in filename)"
+ echo " Default: ${iso_version}"
+ echo " -L <iso_label> Set an iso label (disk label)"
+ echo " Default: ${iso_label}"
+ echo " -D <install_dir> Set an install_dir (directory inside iso)"
+ echo " Default: ${install_dir}"
+ echo " -w <work_dir> Set the working directory"
+ echo " Default: ${work_dir}"
+ echo " -o <out_dir> Set the output directory"
+ echo " Default: ${out_dir}"
+ echo " -v Enable verbose output"
+ echo " -h This help message"
+ exit ${1}
+}
+
+# Helper function to run make_*() only one time per architecture.
+run_once() {
+ if [[ ! -e ${work_dir}/build.${1}_${arch} ]]; then
+ $1
+ touch ${work_dir}/build.${1}_${arch}
+ fi
+}
+
+# Setup custom pacman.conf with current cache directories.
+make_pacman_conf() {
+ local _cache_dirs
+ _cache_dirs=($(pacman -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g'))
+ sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n ${_cache_dirs[@]})|g" ${script_path}/pacman.conf > ${pacman_conf}
+}
+
+# Base installation, plus needed packages (airootfs)
+make_basefs() {
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" init
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -p "memtest86+ mkinitcpio-nfs-utils nbd" install
+}
+
+# Additional packages (airootfs)
+make_packages() {
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -p "$(grep -h -v ^# ${script_path}/packages.{both,${arch}})" install
+}
+
+# Copy mkinitcpio archiso hooks and build initramfs (airootfs)
+make_setup_mkinitcpio() {
+ local _hook
+ for _hook in archiso archiso_shutdown archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_loop_mnt; do
+ cp /usr/lib/initcpio/hooks/${_hook} ${work_dir}/${arch}/airootfs/usr/lib/initcpio/hooks
+ cp /usr/lib/initcpio/install/${_hook} ${work_dir}/${arch}/airootfs/usr/lib/initcpio/install
+ done
+ cp /usr/lib/initcpio/install/archiso_kms ${work_dir}/${arch}/airootfs/usr/lib/initcpio/install
+ cp /usr/lib/initcpio/archiso_shutdown ${work_dir}/${arch}/airootfs/usr/lib/initcpio
+ cp ${script_path}/mkinitcpio.conf ${work_dir}/${arch}/airootfs/etc/mkinitcpio-archiso.conf
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -r 'mkinitcpio -c /etc/mkinitcpio-archiso.conf -k /boot/vmlinuz-linux -g /boot/archiso.img' run
+}
+
+# Customize installation (airootfs)
+make_customize_airootfs() {
+ cp -af ${script_path}/airootfs ${work_dir}/${arch}
+
+ curl -o ${work_dir}/${arch}/airootfs/etc/pacman.d/mirrorlist 'https://www.archlinux.org/mirrorlist/?country=all&protocol=http&use_mirror_status=on'
+
+ lynx -dump -nolist 'https://wiki.archlinux.org/index.php/Installation_Guide?action=render' >> ${work_dir}/${arch}/airootfs/root/install.txt
+
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -r '/root/customize_airootfs.sh' run
+ rm ${work_dir}/${arch}/airootfs/root/customize_airootfs.sh
+}
+
+# Prepare kernel/initramfs ${install_dir}/boot/
+make_boot() {
+ mkdir -p ${work_dir}/iso/${install_dir}/boot/${arch}
+ cp ${work_dir}/${arch}/airootfs/boot/archiso.img ${work_dir}/iso/${install_dir}/boot/${arch}/archiso.img
+ cp ${work_dir}/${arch}/airootfs/boot/vmlinuz-linux ${work_dir}/iso/${install_dir}/boot/${arch}/vmlinuz
+}
+
+# Add other aditional/extra files to ${install_dir}/boot/
+make_boot_extra() {
+ cp ${work_dir}/${arch}/airootfs/boot/memtest86+/memtest.bin ${work_dir}/iso/${install_dir}/boot/memtest
+ cp ${work_dir}/${arch}/airootfs/usr/share/licenses/common/GPL2/license.txt ${work_dir}/iso/${install_dir}/boot/memtest.COPYING
+}
+
+# Prepare /${install_dir}/boot/syslinux
+make_syslinux() {
+ mkdir -p ${work_dir}/iso/${install_dir}/boot/syslinux
+ for _cfg in ${script_path}/syslinux/*.cfg; do
+ sed "s|%ARCHISO_LABEL%|${iso_label}|g;
+ s|%INSTALL_DIR%|${install_dir}|g" ${_cfg} > ${work_dir}/iso/${install_dir}/boot/syslinux/${_cfg##*/}
+ done
+ cp ${script_path}/syslinux/splash.png ${work_dir}/iso/${install_dir}/boot/syslinux
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/*.c32 ${work_dir}/iso/${install_dir}/boot/syslinux
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/lpxelinux.0 ${work_dir}/iso/${install_dir}/boot/syslinux
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/memdisk ${work_dir}/iso/${install_dir}/boot/syslinux
+ mkdir -p ${work_dir}/iso/${install_dir}/boot/syslinux/hdt
+ gzip -c -9 ${work_dir}/${arch}/airootfs/usr/share/hwdata/pci.ids > ${work_dir}/iso/${install_dir}/boot/syslinux/hdt/pciids.gz
+ gzip -c -9 ${work_dir}/${arch}/airootfs/usr/lib/modules/*-ARCH/modules.alias > ${work_dir}/iso/${install_dir}/boot/syslinux/hdt/modalias.gz
+}
+
+# Prepare /isolinux
+make_isolinux() {
+ mkdir -p ${work_dir}/iso/isolinux
+ sed "s|%INSTALL_DIR%|${install_dir}|g" ${script_path}/isolinux/isolinux.cfg > ${work_dir}/iso/isolinux/isolinux.cfg
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/isolinux.bin ${work_dir}/iso/isolinux/
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/isohdpfx.bin ${work_dir}/iso/isolinux/
+ cp ${work_dir}/${arch}/airootfs/usr/lib/syslinux/bios/ldlinux.c32 ${work_dir}/iso/isolinux/
+}
+
+# Prepare /EFI
+make_efi() {
+ mkdir -p ${work_dir}/iso/EFI/boot
+ cp ${work_dir}/x86_64/airootfs/usr/lib/prebootloader/PreLoader.efi ${work_dir}/iso/EFI/boot/bootx64.efi
+ cp ${work_dir}/x86_64/airootfs/usr/lib/prebootloader/HashTool.efi ${work_dir}/iso/EFI/boot/
+
+ cp ${work_dir}/x86_64/airootfs/usr/lib/gummiboot/gummibootx64.efi ${work_dir}/iso/EFI/boot/loader.efi
+
+ mkdir -p ${work_dir}/iso/loader/entries
+ cp ${script_path}/efiboot/loader/loader.conf ${work_dir}/iso/loader/
+ cp ${script_path}/efiboot/loader/entries/uefi-shell-v2-x86_64.conf ${work_dir}/iso/loader/entries/
+ cp ${script_path}/efiboot/loader/entries/uefi-shell-v1-x86_64.conf ${work_dir}/iso/loader/entries/
+
+ sed "s|%ARCHISO_LABEL%|${iso_label}|g;
+ s|%INSTALL_DIR%|${install_dir}|g" \
+ ${script_path}/efiboot/loader/entries/archiso-x86_64-usb.conf > ${work_dir}/iso/loader/entries/archiso-x86_64.conf
+
+ # EFI Shell 2.0 for UEFI 2.3+ ( http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=UEFI_Shell )
+ curl -o ${work_dir}/iso/EFI/shellx64_v2.efi https://svn.code.sf.net/p/edk2/code/trunk/edk2/ShellBinPkg/UefiShell/X64/Shell.efi
+ # EFI Shell 1.0 for non UEFI 2.3+ ( http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=Efi-shell )
+ curl -o ${work_dir}/iso/EFI/shellx64_v1.efi https://svn.code.sf.net/p/edk2/code/trunk/edk2/EdkShellBinPkg/FullShell/X64/Shell_Full.efi
+}
+
+# Prepare efiboot.img::/EFI for "El Torito" EFI boot mode
+make_efiboot() {
+ mkdir -p ${work_dir}/iso/EFI/archiso
+ truncate -s 31M ${work_dir}/iso/EFI/archiso/efiboot.img
+ mkfs.vfat -n ARCHISO_EFI ${work_dir}/iso/EFI/archiso/efiboot.img
+
+ mkdir -p ${work_dir}/efiboot
+ mount ${work_dir}/iso/EFI/archiso/efiboot.img ${work_dir}/efiboot
+
+ mkdir -p ${work_dir}/efiboot/EFI/archiso
+ cp ${work_dir}/iso/${install_dir}/boot/x86_64/vmlinuz ${work_dir}/efiboot/EFI/archiso/vmlinuz.efi
+ cp ${work_dir}/iso/${install_dir}/boot/x86_64/archiso.img ${work_dir}/efiboot/EFI/archiso/archiso.img
+
+ mkdir -p ${work_dir}/efiboot/EFI/boot
+ cp ${work_dir}/x86_64/airootfs/usr/lib/prebootloader/PreLoader.efi ${work_dir}/efiboot/EFI/boot/bootx64.efi
+ cp ${work_dir}/x86_64/airootfs/usr/lib/prebootloader/HashTool.efi ${work_dir}/efiboot/EFI/boot/
+
+ cp ${work_dir}/x86_64/airootfs/usr/lib/gummiboot/gummibootx64.efi ${work_dir}/efiboot/EFI/boot/loader.efi
+
+ mkdir -p ${work_dir}/efiboot/loader/entries
+ cp ${script_path}/efiboot/loader/loader.conf ${work_dir}/efiboot/loader/
+ cp ${script_path}/efiboot/loader/entries/uefi-shell-v2-x86_64.conf ${work_dir}/efiboot/loader/entries/
+ cp ${script_path}/efiboot/loader/entries/uefi-shell-v1-x86_64.conf ${work_dir}/efiboot/loader/entries/
+
+ sed "s|%ARCHISO_LABEL%|${iso_label}|g;
+ s|%INSTALL_DIR%|${install_dir}|g" \
+ ${script_path}/efiboot/loader/entries/archiso-x86_64-cd.conf > ${work_dir}/efiboot/loader/entries/archiso-x86_64.conf
+
+ cp ${work_dir}/iso/EFI/shellx64_v2.efi ${work_dir}/efiboot/EFI/
+ cp ${work_dir}/iso/EFI/shellx64_v1.efi ${work_dir}/efiboot/EFI/
+
+ umount ${work_dir}/efiboot
+}
+
+# Build airootfs filesystem image
+make_prepare() {
+ cp -a -l -f ${work_dir}/${arch}/airootfs ${work_dir}
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" pkglist
+ setarch ${arch} mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" prepare
+ rm -rf ${work_dir}/airootfs
+ # rm -rf ${work_dir}/${arch}/airootfs (if low space, this helps)
+}
+
+# Build ISO
+make_iso() {
+ mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" -L "${iso_label}" -o "${out_dir}" iso "${iso_name}-${iso_version}-dual.iso"
+ #JM LinHES
+ cd ${out_dir}
+ rm -f test3.iso
+ ln -s "${iso_name}-${iso_version}-dual.iso" test3.iso
+ cd -
+
+}
+
+
+#------Start of LinHES functions ----
+
+
+make_cache_repo() {
+ local _url _urls _pkg_name _dst _pkgs _cache_dir
+
+ mkdir -p ${work_dir}/${arch}/airootfs/${pacman_cache}
+ old_cache=${work_dir}/${arch}/old_cache
+ mkdir -p "$old_cache"
+
+ #update repo database in airootfs
+ pacman --config "${pacman_conf}" -Sy -r ${work_dir}/${arch}/airootfs
+
+ #update repo database in airootfs
+ #cmd="pacman -Sy "
+ #setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -r "$cmd" run
+
+ echo "------------------------------------------"
+ for i in $(cat $script_path/packages.${arch}.cache)
+ do
+ if [[ $i != "#"* ]]
+ then
+ echo "Adding $i to pacman cache"
+ _urls=$(pacman --config "${pacman_conf}" -Sp -r ${work_dir}/${arch}/airootfs ${i})
+ #cmd="pacman -Sw $i"
+ #setarch ${arch} mkarchiso ${verbose} -w "${work_dir}/${arch}" -C "${pacman_conf}" -D "${install_dir}" -r "$cmd" run
+
+ cd $old_cache
+ for url in ${_urls}
+ do
+ echo "downloading $url"
+ #wget -N ${url}
+ curl -O ${url}
+ done
+ cd -
+ fi
+#
+ done
+ cp -rp $old_cache/* ${work_dir}/${arch}/airootfs/${pacman_cache}
+ echo "------------------------------------------"
+
+}
+
+copy_pacman_root(){
+ cp -f "${pacman_conf}" ${work_dir}/${arch}/airootfs/etc/pacman.conf
+ sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n ${cache_dirs[@]})|g" \
+ "${pacman_conf}" > ${work_dir}/${arch}/airootfs/etc/pacman.conf
+}
+
+
+make_pristine_copy() {
+ echo "Creating copy of pristine file for later use"
+ cd $work_dir/${arch}/airootfs
+ pwd
+ cat ${script_path}/pristine.list | xargs tar -cf pristine.tar
+ cd -
+}
+find_size(){
+ #find the size of the install.
+ #This is used to calculate progress on the install
+ tsize=`du -sm ${work_dir}/${arch}/airootfs | cut -f1`
+ echo "TOTALSIZE=$tsize" > ${work_dir}/${arch}/airootfs/root/.install_size
+ upsize=`du -sm --exclude data ${work_dir}/${arch}/airootfs |cut -f1`
+ echo "UPGRADESIZE=$upsize" >> ${work_dir}/${arch}/airootfs/root/.install_size
+}
+
+copy_boot(){
+ cp -rp ${work_dir}/${arch}/airootfs/boot ${work_dir}/${arch}/airootfs/boot-orig
+ }
+
+make_var_cache_pacman(){
+ mv ${work_dir}/${arch}/airootfs/${pacman_cache} ${work_dir}/${arch}/airootfs/${pacman_cache_files}
+}
+make_var_lib_pacman(){
+ #make backup copy of /var/lib/pacman for later usage
+ cp -rp ${work_dir}/${arch}/airootfs/var/lib/pacman ${work_dir}/${arch}/airootfs/var-lib-pacman
+}
+
+
+#-----end of linhes functions
+
+
+
+if [[ ${EUID} -ne 0 ]]; then
+ echo "This script must be run as root."
+ _usage 1
+fi
+
+if [[ ${arch} != x86_64 ]]; then
+ echo "This script needs to be run on x86_64"
+ _usage 1
+fi
+
+while getopts 'N:V:L:D:w:o:vh' arg; do
+ case "${arg}" in
+ N) iso_name="${OPTARG}" ;;
+ V) iso_version="${OPTARG}" ;;
+ L) iso_label="${OPTARG}" ;;
+ D) install_dir="${OPTARG}" ;;
+ w) work_dir="${OPTARG}" ;;
+ o) out_dir="${OPTARG}" ;;
+ v) verbose="-v" ;;
+ h) _usage 0 ;;
+ *)
+ echo "Invalid argument '${arg}'"
+ _usage 1
+ ;;
+ esac
+done
+
+mkdir -p ${work_dir}
+
+run_once make_pacman_conf
+
+# Do all stuff for each airootfs
+#for arch in i686 x86_64; do
+#for arch in i686 x86_64; do
+ run_once make_basefs
+ run_once make_packages
+
+ #LinHES
+ run_once copy_pacman_root
+ run_once make_cache_repo
+ ##run_once make_var_cache_pacman
+
+ run_once make_var_lib_pacman
+ #run_once copy_boot
+ run_once make_pristine_copy
+ find_size
+ #----
+
+ run_once make_setup_mkinitcpio
+ run_once make_customize_airootfs #LinHES, function is the same but different overlays
+
+#done
+
+#for arch in i686 x86_64; do
+ run_once make_boot
+#done
+
+# Do all stuff for "iso"
+run_once make_boot_extra
+run_once make_syslinux
+run_once make_isolinux
+
+#JM FIX
+#run_once make_efi
+#run_once make_efiboot
+#------------
+
+
+#for arch in i686 x86_64; do
+ run_once make_prepare
+#done
+
+run_once make_iso
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/fstab b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/fstab
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/fstab
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/hostname b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/hostname
new file mode 100644
index 0000000..2dbe21e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/hostname
@@ -0,0 +1 @@
+archiso
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/locale.conf b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/locale.conf
new file mode 100644
index 0000000..01ec548
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/locale.conf
@@ -0,0 +1 @@
+LANG=en_US.UTF-8
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/machine-id b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/machine-id
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/machine-id
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/pam.d/su b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/pam.d/su
new file mode 100644
index 0000000..a291042
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/pam.d/su
@@ -0,0 +1,6 @@
+#%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/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/sudoers.d/g_wheel b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/sudoers.d/g_wheel
new file mode 100644
index 0000000..8c45359
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/sudoers.d/g_wheel
@@ -0,0 +1 @@
+%wheel ALL=(ALL) NOPASSWD: ALL
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/scripts/choose-mirror b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/scripts/choose-mirror
new file mode 100755
index 0000000..0ae0806
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/scripts/choose-mirror
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+get_cmdline() {
+ local param
+ for param in $(< /proc/cmdline); do
+ case "${param}" in
+ $1=*) echo "${param##*=}";
+ return 0
+ ;;
+ esac
+ done
+}
+
+mirror=$(get_cmdline mirror)
+[[ $mirror = auto ]] && mirror=$(get_cmdline archiso_http_srv)
+[[ $mirror ]] || exit 0
+
+mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.orig
+cat >/etc/pacman.d/mirrorlist << EOF
+#
+# Arch Linux repository mirrorlist
+# Generated by archiso
+#
+
+Server = ${mirror%%/}/\$repo/os/\$arch
+EOF
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/choose-mirror.service b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/choose-mirror.service
new file mode 100644
index 0000000..1e4d771
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/choose-mirror.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Choose mirror from the kernel command line
+ConditionKernelCommandLine=mirror
+
+[Service]
+Type=oneshot
+ExecStart=/etc/systemd/scripts/choose-mirror
+
+[Install]
+WantedBy=multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/etc-pacman.d-gnupg.mount b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/etc-pacman.d-gnupg.mount
new file mode 100644
index 0000000..4eab551
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/etc-pacman.d-gnupg.mount
@@ -0,0 +1,8 @@
+[Unit]
+Description=Temporary /etc/pacman.d/gnupg directory
+
+[Mount]
+What=tmpfs
+Where=/etc/pacman.d/gnupg
+Type=tmpfs
+Options=mode=0755
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/getty@tty1.service.d/autologin.conf b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/getty@tty1.service.d/autologin.conf
new file mode 100644
index 0000000..d1d8474
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/getty@tty1.service.d/autologin.conf
@@ -0,0 +1,3 @@
+[Service]
+ExecStart=
+ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/pacman-init.service b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/pacman-init.service
new file mode 100644
index 0000000..23b8144
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/systemd/system/pacman-init.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Initializes Pacman keyring
+Wants=haveged.service
+After=haveged.service
+Requires=etc-pacman.d-gnupg.mount
+After=etc-pacman.d-gnupg.mount
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/pacman-key --init
+ExecStart=/usr/bin/pacman-key --populate archlinux
+
+[Install]
+WantedBy=multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/udev/rules.d/81-dhcpcd.rules b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/udev/rules.d/81-dhcpcd.rules
new file mode 100644
index 0000000..1c4053c
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/etc/udev/rules.d/81-dhcpcd.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="en*|eth*", ENV{SYSTEMD_WANTS}="dhcpcd@$name.service"
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/.automated_script.sh b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/.automated_script.sh
new file mode 100755
index 0000000..81a98a1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/.automated_script.sh
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+script_cmdline ()
+{
+ local param
+ for param in $(< /proc/cmdline); do
+ case "${param}" in
+ script=*) echo "${param#*=}" ; return 0 ;;
+ esac
+ done
+}
+
+automated_script ()
+{
+ local script rt
+ script="$(script_cmdline)"
+ if [[ -n "${script}" && ! -x /tmp/startup_script ]]; then
+ if [[ "${script}" =~ ^http:// || "${script}" =~ ^ftp:// ]]; then
+ wget "${script}" --retry-connrefused -q -O /tmp/startup_script >/dev/null
+ rt=$?
+ else
+ cp "${script}" /tmp/startup_script
+ rt=$?
+ fi
+ if [[ ${rt} -eq 0 ]]; then
+ chmod +x /tmp/startup_script
+ /tmp/startup_script
+ fi
+ fi
+}
+
+if [[ $(tty) == "/dev/tty1" ]]; then
+ automated_script
+fi
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/.zlogin b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/.zlogin
new file mode 100644
index 0000000..f598e43
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/.zlogin
@@ -0,0 +1 @@
+~/.automated_script.sh
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/customize_airootfs.sh b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/customize_airootfs.sh
new file mode 100755
index 0000000..aecf7f1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/customize_airootfs.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+set -e -u
+
+sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
+locale-gen
+
+ln -sf /usr/share/zoneinfo/UTC /etc/localtime
+
+usermod -s /usr/bin/zsh root
+cp -aT /etc/skel/ /root/
+chmod 700 /root
+
+useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /usr/bin/zsh arch
+
+chmod 750 /etc/sudoers.d
+chmod 440 /etc/sudoers.d/g_wheel
+
+sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
+sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
+
+systemctl enable pacman-init.service choose-mirror.service
+systemctl set-default multi-user.target
diff --git a/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/install.txt b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/install.txt
new file mode 100644
index 0000000..3c8f171
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/airootfs.orig/root/install.txt
@@ -0,0 +1,3 @@
+View this installation guide online at
+https://wiki.archlinux.org/index.php/Installation_Guide
+
diff --git a/build_tools/archiso-19/mythvantage/crap/mkinitcpio.conf.orig b/build_tools/archiso-19/mythvantage/crap/mkinitcpio.conf.orig
new file mode 100644
index 0000000..2f46da4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/mkinitcpio.conf.orig
@@ -0,0 +1,2 @@
+HOOKS="base udev memdisk archiso_shutdown archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block pcmcia filesystems keyboard"
+COMPRESSION="xz"
diff --git a/build_tools/archiso-19/mythvantage/crap/packages.both.orig b/build_tools/archiso-19/mythvantage/crap/packages.both.orig
new file mode 100644
index 0000000..36eb346
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/packages.both.orig
@@ -0,0 +1,62 @@
+#arch-install-scripts
+b43-fwcutter
+btrfs-progs
+clonezilla
+crda
+darkhttpd
+ddrescue
+dhclient
+dialog
+dmraid
+dnsmasq
+dnsutils
+dosfstools
+elinks
+ethtool
+f2fs-tools
+fsarchiver
+gnu-netcat
+gpm
+gptfdisk
+grml-zsh-config
+grub
+haveged
+hdparm
+intel-ucode
+ipw2100-fw
+ipw2200-fw
+irssi
+lftp
+linux-atm
+mc
+mtools
+nfs-utils
+nilfs-utils
+nmap
+ntfs-3g
+ntp
+openconnect
+openssh
+openvpn
+partclone
+parted
+partimage
+ppp
+pptpclient
+rfkill
+rp-pppoe
+rsync
+smartmontools
+speedtouch
+sudo
+tcpdump
+testdisk
+usb_modeswitch
+vpnc
+wget
+wireless_tools
+wpa_actiond
+wvdial
+xl2tpd
+zd1211-firmware
+zsh
diff --git a/build_tools/archiso-19/mythvantage/crap/packages.i686 b/build_tools/archiso-19/mythvantage/crap/packages.i686
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/packages.i686
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/arch-release b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/arch-release
new file mode 100644
index 0000000..d899e29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/arch-release
@@ -0,0 +1 @@
+MythVantage Live/Installation
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions
new file mode 100644
index 0000000..9fffdcb
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/archiso/functions
@@ -0,0 +1,20 @@
+# vim: set ft=sh:
+
+# kernel_cmdline <param> <default>
+# Looks for a parameter on the kernel's boot-time command line.
+#
+# returns: 0 if param was found. Also prints its value if it was a K=V param.
+# 1 if it was not. Also prints value passed as <default>
+#
+kernel_cmdline ()
+{
+ for param in $(/bin/cat /proc/cmdline); do
+ case "${param}" in
+ $1=*) echo "${param##*=}"; return 0 ;;
+ $1) return 0 ;;
+ *) continue ;;
+ esac
+ done
+ [ -n "${2}" ] && echo "${2}"
+ return 1
+}
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/conf.d/dhcpcd b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/conf.d/dhcpcd
new file mode 100644
index 0000000..ab53c30
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/conf.d/dhcpcd
@@ -0,0 +1,6 @@
+#
+# Arguments to be passed to the DHCP client daemon
+#
+
+DHCPCD_ARGS="-t 10 -h $HOSTNAME"
+
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hostname b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hostname
new file mode 100644
index 0000000..a616f6e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hostname
@@ -0,0 +1 @@
+apheleia
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts
new file mode 100644
index 0000000..d23291e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts
@@ -0,0 +1,9 @@
+#
+# /etc/hosts: static lookup table for host names
+#
+
+#<ip-address> <hostname.domain.org> <hostname>
+127.0.0.1 localhost.localdomain localhost archiso
+::1 localhost.localdomain localhost archiso
+
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts.allow b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts.allow
new file mode 100755
index 0000000..f6cf005
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts.allow
@@ -0,0 +1,8 @@
+#
+# /etc/hosts.allow
+#
+ALL: 192.168.
+ALL: 10.
+ALL: 127.0.0.1
+ALL: 172.16.
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts.deny b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts.deny
new file mode 100755
index 0000000..ca30ab4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/hosts.deny
@@ -0,0 +1,6 @@
+#
+# /etc/hosts.deny
+#
+ALL
+
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/inittab b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/inittab
new file mode 100644
index 0000000..1e65b5e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/inittab
@@ -0,0 +1,48 @@
+#
+# /etc/inittab
+#
+
+# Runlevels:
+# 0 Halt
+# 1(S) Single-user
+# 2 Not used
+# 3 Multi-user
+# 4 Not used
+# 5 X11
+# 6 Reboot
+
+## Only one of the following two lines can be uncommented!
+# Boot to console
+id:3:initdefault:
+# Boot to X11
+#id:5:initdefault:
+
+rc::sysinit:/etc/rc.sysinit
+rs:S1:wait:/etc/rc.single
+rm:2345:wait:/etc/rc.multi
+rh:06:wait:/etc/rc.shutdown
+su:S:wait:/sbin/sulogin -p
+
+# -8 options fixes umlauts problem on login
+#c1:2345:respawn:/sbin/agetty -8 -s -n -l /usr/bin/autologin 38400 tty1 linux
+c2:2345:respawn:/sbin/agetty -8 -s 38400 tty2 linux
+c3:2345:respawn:/sbin/agetty -8 -s 38400 tty3 linux
+c4:2345:respawn:/sbin/agetty -8 -s 38400 tty4 linux
+c5:2345:respawn:/sbin/agetty -8 -s 38400 tty5 linux
+c6:2345:respawn:/sbin/agetty -8 -s 38400 tty6 linux
+
+# Serial Virtual Console for KVM and others VMs
+#s0:2345:respawn:/sbin/agetty -8 -s 9600 ttyS0 linux
+
+# Hypervisor Virtual Console for Xen and KVM
+#h0:2345:respawn:/sbin/agetty -8 -s 38400 hvc0 linux
+
+ca::ctrlaltdel:/sbin/shutdown -t3 -r now
+
+# Example lines for starting a login manager
+x:5:respawn:/usr/bin/xdm -nodaemon
+#x:5:respawn:/usr/sbin/gdm -nodaemon
+#x:5:respawn:/usr/bin/kdm -nodaemon
+#x:5:respawn:/usr/bin/slim >/dev/null 2>&1
+
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/issue b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/issue
new file mode 100644
index 0000000..9b082c4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/issue
@@ -0,0 +1,5 @@
+
+MythVantage Live ISO (\l)
+\s-\r \m.
+Default logins "root" and "mythtv" have no password.
+To begin installation, login as root.
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/locale.conf b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/locale.conf
new file mode 100644
index 0000000..a8e6e6f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/locale.conf
@@ -0,0 +1 @@
+LOCALE="en_US.UTF-8"
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/locale.gen b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/locale.gen
new file mode 100644
index 0000000..9fe42e0
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/locale.gen
@@ -0,0 +1,462 @@
+## Configuration file for locale-gen
+##
+## lists of locales that are to be generated by the locale-gen command.
+##
+## Each line is of the form:
+##
+## <locale> <charset>
+##
+## where <locale> is one of the locales given in /usr/share/i18n/locales
+## and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
+##
+## Examples:
+en_US ISO-8859-1
+en_US.UTF-8 UTF-8
+de_DE ISO-8859-1
+de_DE@euro ISO-8859-15
+##
+## The locale-gen command will generate all the locales,
+## placing them in /usr/lib/locale.
+##
+## A list of supported locales is included in this file.
+## Uncomment the ones you need.
+##
+## This file names the currently supported and somewhat tested locales.
+## If you have any additions please file a glibc bug report.
+#
+#aa_DJ.UTF-8 UTF-8
+#aa_DJ ISO-8859-1
+#aa_ER UTF-8
+#aa_ER@saaho UTF-8
+#aa_ET UTF-8
+#af_ZA.UTF-8 UTF-8
+#af_ZA ISO-8859-1
+#am_ET UTF-8
+#an_ES.UTF-8 UTF-8
+#an_ES ISO-8859-15
+#ar_AE.UTF-8 UTF-8
+#ar_AE ISO-8859-6
+#ar_BH.UTF-8 UTF-8
+#ar_BH ISO-8859-6
+#ar_DZ.UTF-8 UTF-8
+#ar_DZ ISO-8859-6
+#ar_EG.UTF-8 UTF-8
+#ar_EG ISO-8859-6
+#ar_IN UTF-8
+#ar_IQ.UTF-8 UTF-8
+#ar_IQ ISO-8859-6
+#ar_JO.UTF-8 UTF-8
+#ar_JO ISO-8859-6
+#ar_KW.UTF-8 UTF-8
+#ar_KW ISO-8859-6
+#ar_LB.UTF-8 UTF-8
+#ar_LB ISO-8859-6
+#ar_LY.UTF-8 UTF-8
+#ar_LY ISO-8859-6
+#ar_MA.UTF-8 UTF-8
+#ar_MA ISO-8859-6
+#ar_OM.UTF-8 UTF-8
+#ar_OM ISO-8859-6
+#ar_QA.UTF-8 UTF-8
+#ar_QA ISO-8859-6
+#ar_SA.UTF-8 UTF-8
+#ar_SA ISO-8859-6
+#ar_SD.UTF-8 UTF-8
+#ar_SD ISO-8859-6
+#ar_SY.UTF-8 UTF-8
+#ar_SY ISO-8859-6
+#ar_TN.UTF-8 UTF-8
+#ar_TN ISO-8859-6
+#ar_YE.UTF-8 UTF-8
+#ar_YE ISO-8859-6
+#az_AZ UTF-8
+#as_IN UTF-8
+#ast_ES.UTF-8 UTF-8
+#ast_ES ISO-8859-15
+#be_BY.UTF-8 UTF-8
+#be_BY CP1251
+#be_BY@latin UTF-8
+#bem_ZM UTF-8
+#ber_DZ UTF-8
+#ber_MA UTF-8
+#bg_BG.UTF-8 UTF-8
+#bg_BG CP1251
+#bho_IN UTF-8
+#bn_BD UTF-8
+#bn_IN UTF-8
+#bo_CN UTF-8
+#bo_IN UTF-8
+#br_FR.UTF-8 UTF-8
+#br_FR ISO-8859-1
+#br_FR@euro ISO-8859-15
+#brx_IN UTF-8
+#bs_BA.UTF-8 UTF-8
+#bs_BA ISO-8859-2
+#byn_ER UTF-8
+#ca_AD.UTF-8 UTF-8
+#ca_AD ISO-8859-15
+#ca_ES.UTF-8 UTF-8
+#ca_ES ISO-8859-1
+#ca_ES@euro ISO-8859-15
+#ca_FR.UTF-8 UTF-8
+#ca_FR ISO-8859-15
+#ca_IT.UTF-8 UTF-8
+#ca_IT ISO-8859-15
+#crh_UA UTF-8
+#cs_CZ.UTF-8 UTF-8
+#cs_CZ ISO-8859-2
+#csb_PL UTF-8
+#cv_RU UTF-8
+#cy_GB.UTF-8 UTF-8
+#cy_GB ISO-8859-14
+#da_DK.UTF-8 UTF-8
+#da_DK ISO-8859-1
+#de_AT.UTF-8 UTF-8
+#de_AT ISO-8859-1
+#de_AT@euro ISO-8859-15
+#de_BE.UTF-8 UTF-8
+#de_BE ISO-8859-1
+#de_BE@euro ISO-8859-15
+#de_CH.UTF-8 UTF-8
+#de_CH ISO-8859-1
+#de_DE.UTF-8 UTF-8
+#de_DE ISO-8859-1
+#de_DE@euro ISO-8859-15
+#de_LU.UTF-8 UTF-8
+#de_LU ISO-8859-1
+#de_LU@euro ISO-8859-15
+#dv_MV UTF-8
+#dz_BT UTF-8
+#el_GR.UTF-8 UTF-8
+#el_GR ISO-8859-7
+#el_CY.UTF-8 UTF-8
+#el_CY ISO-8859-7
+#en_AG UTF-8
+#en_AU.UTF-8 UTF-8
+#en_AU ISO-8859-1
+#en_BW.UTF-8 UTF-8
+#en_BW ISO-8859-1
+#en_CA.UTF-8 UTF-8
+#en_CA ISO-8859-1
+#en_DK.UTF-8 UTF-8
+#en_DK ISO-8859-1
+#en_GB.UTF-8 UTF-8
+#en_GB ISO-8859-1
+#en_HK.UTF-8 UTF-8
+#en_HK ISO-8859-1
+#en_IE.UTF-8 UTF-8
+#en_IE ISO-8859-1
+#en_IE@euro ISO-8859-15
+#en_IN UTF-8
+#en_NG UTF-8
+#en_NZ.UTF-8 UTF-8
+#en_NZ ISO-8859-1
+#en_PH.UTF-8 UTF-8
+#en_PH ISO-8859-1
+#en_SG.UTF-8 UTF-8
+#en_SG ISO-8859-1
+#en_US.UTF-8 UTF-8
+#en_US ISO-8859-1
+#en_ZA.UTF-8 UTF-8
+#en_ZA ISO-8859-1
+#en_ZM UTF-8
+#en_ZW.UTF-8 UTF-8
+#en_ZW ISO-8859-1
+#es_AR.UTF-8 UTF-8
+#es_AR ISO-8859-1
+#es_BO.UTF-8 UTF-8
+#es_BO ISO-8859-1
+#es_CL.UTF-8 UTF-8
+#es_CL ISO-8859-1
+#es_CO.UTF-8 UTF-8
+#es_CO ISO-8859-1
+#es_CR.UTF-8 UTF-8
+#es_CR ISO-8859-1
+#es_CU UTF-8
+#es_DO.UTF-8 UTF-8
+#es_DO ISO-8859-1
+#es_EC.UTF-8 UTF-8
+#es_EC ISO-8859-1
+#es_ES.UTF-8 UTF-8
+#es_ES ISO-8859-1
+#es_ES@euro ISO-8859-15
+#es_GT.UTF-8 UTF-8
+#es_GT ISO-8859-1
+#es_HN.UTF-8 UTF-8
+#es_HN ISO-8859-1
+#es_MX.UTF-8 UTF-8
+#es_MX ISO-8859-1
+#es_NI.UTF-8 UTF-8
+#es_NI ISO-8859-1
+#es_PA.UTF-8 UTF-8
+#es_PA ISO-8859-1
+#es_PE.UTF-8 UTF-8
+#es_PE ISO-8859-1
+#es_PR.UTF-8 UTF-8
+#es_PR ISO-8859-1
+#es_PY.UTF-8 UTF-8
+#es_PY ISO-8859-1
+#es_SV.UTF-8 UTF-8
+#es_SV ISO-8859-1
+#es_US.UTF-8 UTF-8
+#es_US ISO-8859-1
+#es_UY.UTF-8 UTF-8
+#es_UY ISO-8859-1
+#es_VE.UTF-8 UTF-8
+#es_VE ISO-8859-1
+#et_EE.UTF-8 UTF-8
+#et_EE ISO-8859-1
+#et_EE.ISO-8859-15 ISO-8859-15
+#eu_ES.UTF-8 UTF-8
+#eu_ES ISO-8859-1
+#eu_ES@euro ISO-8859-15
+#fa_IR UTF-8
+#ff_SN UTF-8
+#fi_FI.UTF-8 UTF-8
+#fi_FI ISO-8859-1
+#fi_FI@euro ISO-8859-15
+#fil_PH UTF-8
+#fo_FO.UTF-8 UTF-8
+#fo_FO ISO-8859-1
+#fr_BE.UTF-8 UTF-8
+#fr_BE ISO-8859-1
+#fr_BE@euro ISO-8859-15
+#fr_CA.UTF-8 UTF-8
+#fr_CA ISO-8859-1
+#fr_CH.UTF-8 UTF-8
+#fr_CH ISO-8859-1
+#fr_FR.UTF-8 UTF-8
+#fr_FR ISO-8859-1
+#fr_FR@euro ISO-8859-15
+#fr_LU.UTF-8 UTF-8
+#fr_LU ISO-8859-1
+#fr_LU@euro ISO-8859-15
+#fur_IT UTF-8
+#fy_NL UTF-8
+#fy_DE UTF-8
+#ga_IE.UTF-8 UTF-8
+#ga_IE ISO-8859-1
+#ga_IE@euro ISO-8859-15
+#gd_GB.UTF-8 UTF-8
+#gd_GB ISO-8859-15
+#gez_ER UTF-8
+#gez_ER@abegede UTF-8
+#gez_ET UTF-8
+#gez_ET@abegede UTF-8
+#gl_ES.UTF-8 UTF-8
+#gl_ES ISO-8859-1
+#gl_ES@euro ISO-8859-15
+#gu_IN UTF-8
+#gv_GB.UTF-8 UTF-8
+#gv_GB ISO-8859-1
+#ha_NG UTF-8
+#he_IL.UTF-8 UTF-8
+#he_IL ISO-8859-8
+#hi_IN UTF-8
+#hne_IN UTF-8
+#hr_HR.UTF-8 UTF-8
+#hr_HR ISO-8859-2
+#hsb_DE ISO-8859-2
+#hsb_DE.UTF-8 UTF-8
+#ht_HT UTF-8
+#hu_HU.UTF-8 UTF-8
+#hu_HU ISO-8859-2
+#hy_AM UTF-8
+#hy_AM.ARMSCII-8 ARMSCII-8
+#id_ID.UTF-8 UTF-8
+#id_ID ISO-8859-1
+#ig_NG UTF-8
+#ik_CA UTF-8
+#is_IS.UTF-8 UTF-8
+#is_IS ISO-8859-1
+#it_CH.UTF-8 UTF-8
+#it_CH ISO-8859-1
+#it_IT.UTF-8 UTF-8
+#it_IT ISO-8859-1
+#it_IT@euro ISO-8859-15
+#iu_CA UTF-8
+#iw_IL.UTF-8 UTF-8
+#iw_IL ISO-8859-8
+#ja_JP.EUC-JP EUC-JP
+#ja_JP.UTF-8 UTF-8
+#ka_GE.UTF-8 UTF-8
+#ka_GE GEORGIAN-PS
+#kk_KZ.UTF-8 UTF-8
+#kk_KZ PT154
+#kl_GL.UTF-8 UTF-8
+#kl_GL ISO-8859-1
+#km_KH UTF-8
+#kn_IN UTF-8
+#ko_KR.EUC-KR EUC-KR
+#ko_KR.UTF-8 UTF-8
+#kok_IN UTF-8
+#ks_IN UTF-8
+#ks_IN@devanagari UTF-8
+#ku_TR.UTF-8 UTF-8
+#ku_TR ISO-8859-9
+#kw_GB.UTF-8 UTF-8
+#kw_GB ISO-8859-1
+#ky_KG UTF-8
+#lb_LU UTF-8
+#lg_UG.UTF-8 UTF-8
+#lg_UG ISO-8859-10
+#li_BE UTF-8
+#li_NL UTF-8
+#lij_IT UTF-8
+#lo_LA UTF-8
+#lt_LT.UTF-8 UTF-8
+#lt_LT ISO-8859-13
+#lv_LV.UTF-8 UTF-8
+#lv_LV ISO-8859-13
+#mai_IN UTF-8
+#mg_MG.UTF-8 UTF-8
+#mg_MG ISO-8859-15
+#mhr_RU UTF-8
+#mi_NZ.UTF-8 UTF-8
+#mi_NZ ISO-8859-13
+#mk_MK.UTF-8 UTF-8
+#mk_MK ISO-8859-5
+#ml_IN UTF-8
+#mn_MN UTF-8
+#mr_IN UTF-8
+#ms_MY.UTF-8 UTF-8
+#ms_MY ISO-8859-1
+#mt_MT.UTF-8 UTF-8
+#mt_MT ISO-8859-3
+#my_MM UTF-8
+#nan_TW@latin UTF-8
+#nb_NO.UTF-8 UTF-8
+#nb_NO ISO-8859-1
+#nds_DE UTF-8
+#nds_NL UTF-8
+#ne_NP UTF-8
+#nl_AW UTF-8
+#nl_BE.UTF-8 UTF-8
+#nl_BE ISO-8859-1
+#nl_BE@euro ISO-8859-15
+#nl_NL.UTF-8 UTF-8
+#nl_NL ISO-8859-1
+#nl_NL@euro ISO-8859-15
+#nn_NO.UTF-8 UTF-8
+#nn_NO ISO-8859-1
+#nr_ZA UTF-8
+#nso_ZA UTF-8
+#oc_FR.UTF-8 UTF-8
+#oc_FR ISO-8859-1
+#om_ET UTF-8
+#om_KE.UTF-8 UTF-8
+#om_KE ISO-8859-1
+#or_IN UTF-8
+#os_RU UTF-8
+#pa_IN UTF-8
+#pa_PK UTF-8
+#pap_AN UTF-8
+#pl_PL.UTF-8 UTF-8
+#pl_PL ISO-8859-2
+#ps_AF UTF-8
+#pt_BR.UTF-8 UTF-8
+#pt_BR ISO-8859-1
+#pt_PT.UTF-8 UTF-8
+#pt_PT ISO-8859-1
+#pt_PT@euro ISO-8859-15
+#ro_RO.UTF-8 UTF-8
+#ro_RO ISO-8859-2
+#ru_RU.KOI8-R KOI8-R
+#ru_RU.UTF-8 UTF-8
+#ru_RU ISO-8859-5
+#ru_UA.UTF-8 UTF-8
+#ru_UA KOI8-U
+#rw_RW UTF-8
+#sa_IN UTF-8
+#sc_IT UTF-8
+#sd_IN UTF-8
+#sd_IN@devanagari UTF-8
+#se_NO UTF-8
+#shs_CA UTF-8
+#si_LK UTF-8
+#sid_ET UTF-8
+#sk_SK.UTF-8 UTF-8
+#sk_SK ISO-8859-2
+#sl_SI.UTF-8 UTF-8
+#sl_SI ISO-8859-2
+#so_DJ.UTF-8 UTF-8
+#so_DJ ISO-8859-1
+#so_ET UTF-8
+#so_KE.UTF-8 UTF-8
+#so_KE ISO-8859-1
+#so_SO.UTF-8 UTF-8
+#so_SO ISO-8859-1
+#sq_AL.UTF-8 UTF-8
+#sq_AL ISO-8859-1
+#sq_MK UTF-8
+#sr_ME UTF-8
+#sr_RS UTF-8
+#sr_RS@latin UTF-8
+#ss_ZA UTF-8
+#st_ZA.UTF-8 UTF-8
+#st_ZA ISO-8859-1
+#sv_FI.UTF-8 UTF-8
+#sv_FI ISO-8859-1
+#sv_FI@euro ISO-8859-15
+#sv_SE.UTF-8 UTF-8
+#sv_SE ISO-8859-1
+#sw_KE UTF-8
+#sw_TZ UTF-8
+#ta_IN UTF-8
+#ta_LK UTF-8
+#te_IN UTF-8
+#tg_TJ.UTF-8 UTF-8
+#tg_TJ KOI8-T
+#th_TH.UTF-8 UTF-8
+#th_TH TIS-620
+#ti_ER UTF-8
+#ti_ET UTF-8
+#tig_ER UTF-8
+#tk_TM UTF-8
+#tl_PH.UTF-8 UTF-8
+#tl_PH ISO-8859-1
+#tn_ZA UTF-8
+#tr_CY.UTF-8 UTF-8
+#tr_CY ISO-8859-9
+#tr_TR.UTF-8 UTF-8
+#tr_TR ISO-8859-9
+#ts_ZA UTF-8
+#tt_RU UTF-8
+#tt_RU@iqtelif UTF-8
+#ug_CN UTF-8
+#uk_UA.UTF-8 UTF-8
+#uk_UA KOI8-U
+#unm_US UTF-8
+#ur_IN UTF-8
+#ur_PK UTF-8
+#uz_UZ ISO-8859-1
+#uz_UZ@cyrillic UTF-8
+#ve_ZA UTF-8
+#vi_VN.TCVN TCVN5712-1
+#vi_VN UTF-8
+#wa_BE ISO-8859-1
+#wa_BE@euro ISO-8859-15
+#wa_BE.UTF-8 UTF-8
+#wae_CH UTF-8
+#wal_ET UTF-8
+#wo_SN UTF-8
+#xh_ZA.UTF-8 UTF-8
+#xh_ZA ISO-8859-1
+#yi_US.UTF-8 UTF-8
+#yi_US CP1255
+#yo_NG UTF-8
+#yue_HK UTF-8
+#zh_CN.GB18030 GB18030
+#zh_CN.GBK GBK
+#zh_CN.UTF-8 UTF-8
+#zh_CN GB2312
+#zh_HK.UTF-8 UTF-8
+#zh_HK BIG5-HKSCS
+#zh_SG.UTF-8 UTF-8
+#zh_SG.GBK GBK
+#zh_SG GB2312
+#zh_TW.EUC-TW EUC-TW
+#zh_TW.UTF-8 UTF-8
+#zh_TW BIG5
+#zu_ZA.UTF-8 UTF-8
+#zu_ZA ISO-8859-1
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/nsswitch.conf b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/nsswitch.conf
new file mode 100644
index 0000000..2c66b68
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/nsswitch.conf
@@ -0,0 +1,19 @@
+# Begin /etc/nsswitch.conf
+
+passwd: files
+group: files
+shadow: files
+
+publickey: files
+
+hosts: files mdns4_minimal dns mdns4
+networks: files
+
+protocols: files
+services: files
+ethers: files
+rpc: files
+
+netgroup: files
+
+# End /etc/nsswitch.conf
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/pam.d/su b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/pam.d/su
new file mode 100644
index 0000000..a291042
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/pam.d/su
@@ -0,0 +1,6 @@
+#%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/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.conf b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.conf
new file mode 100644
index 0000000..b4a9e46
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.conf
@@ -0,0 +1,7 @@
+USECOLOR="no"
+LOCALE_DEFAULT="en_US.UTF-8"
+DAEMON_LOCALE_DEFAULT="no"
+CLOCK_DEFAULT="UTC"
+TIMEZONE_DEFAULT="UTC"
+KEYMAP_DEFAULT="us"
+USECOLOR_DEFAULT="no"
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.d/functions.d/symlink_used_block_devices b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.d/functions.d/symlink_used_block_devices
new file mode 100644
index 0000000..f6b6062
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.d/functions.d/symlink_used_block_devices
@@ -0,0 +1,7 @@
+symlink_used_block_devices()
+{
+ mkdir /run/aif
+ ln -s /run/archiso/used_block_devices /run/aif/ignore_block_devices
+}
+
+add_hook multi_end symlink_used_block_devices
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.d/pacman-init b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.d/pacman-init
new file mode 100755
index 0000000..bbbd719
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.d/pacman-init
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+case "$1" in
+ start)
+ stat_busy "Initializing pacman keyring"
+ if { pacman-key --init && pacman-key --populate archlinux; } &>/dev/null; then
+ add_daemon pacman-init
+ stat_done
+ else
+ stat_fail
+ exit 1
+ fi
+ ;;
+
+ stop)
+ stat_busy "Removing pacman keyring"
+ rm -rf /etc/pacman.d/gnupg
+ rm_daemon pacman-init
+ stat_done
+ ;;
+
+ restart)
+ $0 stop
+ $0 start
+ ;;
+
+ *)
+ echo "usage: $0 {start|stop|restart}"
+esac
+
+exit 0
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.local b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.local
new file mode 100755
index 0000000..6e49dc1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/rc.local
@@ -0,0 +1,112 @@
+#!/bin/bash
+#
+# /etc/rc.local: Local multi-user startup script.
+#
+. /etc/rc.conf
+. /etc/rc.d/functions
+. /etc/profile
+. ${MV_ROOT}/bin/install_functions.sh
+
+function mysql_check {
+ mysql -e "show databases;" 2>/dev/null >/dev/null
+ return $?
+}
+
+function mythconverg_check {
+ mysql mythconverg -e "describe settings;" 2>/dev/null >/dev/null
+ return $?
+}
+
+function install_db {
+ pacman --noconfirm -R mythdb-initial 2>/dev/null > /dev/null
+ pacman -S --noconfirm mythdb-initial 2>/dev/null > /dev/null
+}
+
+
+#set bootdev.txt for shutdown eject in archiso_shutdown
+mount|grep bootmnt|cut -f1 -d" " > /run/initramfs/bootdev.txt
+cp -f /usr/bin/eject /run/initramfs/usr/bin/eject
+
+#check to see if mysql is running
+stat_busy "Checking Mysql"
+ATTEMPT=0
+mysql_check && printhl " Installing the initial database" &&install_db
+mythconverg_check
+status=$?
+while [ ! $status = 0 ]
+do
+ /etc/rc.d/mysqld start
+ mysqlstatus=$?
+ if [ $mysqlstatus = 0 ]
+ then
+ mysql_check && install_db
+ mythconverg_check
+ status=$?
+ else
+ ((ATTEMPT=ATTEMPT+1))
+ /etc/rc.d/mysqld stop
+ sleep 2
+ fi
+ if [ $ATTEMPT = 20 ]
+ then
+ printhl " Could not start mysql or install mythconverg within 20 attempts"
+ printhl " Aborting install"
+ exit 20
+ fi
+done
+stat_done
+
+#check network parms
+stat_busy "Checking network"
+init_network
+stat_done
+
+stat_busy "Probing network"
+request_dhcp &
+stat_done
+
+#save some cmdline options
+stat_busy "Parsing command line"
+parse_cmdline_2_db
+bootsplash_setup
+stat_done
+
+#search for remote
+stat_busy "Checking for remote"
+init_remote
+stat_done
+printhl "Finished"
+
+#creating /myth for live cd
+. /usr/MythVantage/bin/mv_config.py
+HDIR=`dirname $MYTHHOME`
+mkdir -p $HDIR
+useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv
+chown -R mythtv.mythtv $MYTHHOME
+#creating mountpoint for live cd
+mkdir -p $DATAMOUNT
+create_media_dirs.sh $DATAMOUNT
+chown -R mythtv.mythtv $DATAMOUNT/media
+
+
+
+printhl "Finished"
+/etc/rc.d/dbus start
+/etc/rc.d/avahi-daemon start
+echo $CMDLINE | grep -qi NoX
+if [ $? = 0 ]
+then
+ echo ""
+ printhl "No auto X option found"
+ # /usr/bin/chvt 2
+else
+ /root/startx &
+fi
+
+# Set up automatically logged in user
+if [ -f /.livesys/autologin ]; then
+ cp /.livesys/autologin /tmp/newuser
+fi
+
+#sh /usr/bin/go.sh &
+
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/sudoers.d/g_wheel b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/sudoers.d/g_wheel
new file mode 100755
index 0000000..8c45359
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/sudoers.d/g_wheel
@@ -0,0 +1 @@
+%wheel ALL=(ALL) NOPASSWD: ALL
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/vconsole.conf b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/vconsole.conf
new file mode 100644
index 0000000..d89ef8a
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/etc/vconsole.conf
@@ -0,0 +1 @@
+CONSOLEMAP="8859-1"
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/go.sh b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/go.sh
new file mode 100755
index 0000000..49ccad8
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/go.sh
@@ -0,0 +1,40 @@
+#!/bin/bash
+#This script is run after data is copied, but before configuration.
+
+. /usr/MythVantage/bin/mv_config.py
+
+PD="/root/.post_process"
+pacman -S --force --noconfirm runit-scripts
+
+HDIR=`dirname $MYTHHOME`
+mkdir -p $HDIR
+useradd -b $HDIR -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv
+
+
+
+chown -R mythtv.mythtv $MYTHHOME
+
+#creating /myth for live cd
+mkdir -p $DATAMOUNT
+create_media_dirs.sh $DATAMOUNT
+chown -R mythtv.mythtv $DATAMOUNT/media
+
+
+
+python2 /root/.post_process/locale.py
+echo "generating locales"
+/usr/sbin/locale-gen
+
+rm -f /etc/issue
+ln -s /etc/LinHES-release /etc/issue
+
+#remove files
+rm -f /root/LinHES-install.sh
+rm -f /root/startx
+rm -f /root/.directory
+
+
+#cp -rvpf /.post_process/home/mythtv /home/
+#cp -rvpf /.post_process/home/mythtv/.fluxbox /root
+#cp -vpf /.post_process/nouveau.conf /etc/modprobe.d/nouveau.conf
+mv $PD $PD.old
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/locale.py b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/locale.py
new file mode 100644
index 0000000..70cfcbd
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/locale.py
@@ -0,0 +1,23 @@
+def genlocale():
+ #logging.info("Generating locales")
+ locale_list=[ "en_US ISO-8859-1", "en_US.UTF-8 UTF-8" , "de_DE.UTF-8", "da_DK.utf8", "en_DK.utf8", "it_IT.utf8", "de_DE.UTF-8"]
+ #locale_list=['UTF-8', 'en_US ISO-8859-1']
+
+ localefile="/etc/locale.gen"
+ f = open(localefile)
+ lines = f.readlines()
+ f.close()
+
+ f = open(localefile,'w')
+
+ for line in lines:
+ outline = line
+ for locale in locale_list:
+ #print locale, line
+ if locale in line:
+ outline = line.replace('#','')
+ f.write(outline)
+
+ f.close
+
+genlocale()
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/menu.lst b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/menu.lst
new file mode 100755
index 0000000..0ecc2a7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/menu.lst
@@ -0,0 +1,60 @@
+# Config file for GRUB - The GNU GRand Unified Bootloader
+# /boot/grub/menu.lst
+
+# DEVICE NAME CONVERSIONS
+#
+# Linux Grub
+# -------------------------
+# /dev/fd0 (fd0)
+# /dev/hda (hd0)
+# /dev/hdb2 (hd1,1)
+# /dev/hda3 (hd0,2)
+#
+
+# FRAMEBUFFER RESOLUTION SETTINGS
+# +-------------------------------------------------+
+# | 640x480 800x600 1024x768 1280x1024
+# ----+--------------------------------------------
+# 256 | 0x301=769 0x303=771 0x305=773 0x307=775
+# 32K | 0x310=784 0x313=787 0x316=790 0x319=793
+# 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
+# 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
+# +-------------------------------------------------+
+
+# general configuration:
+timeout 5
+default 0
+#color light-blue/black light-cyan/blue
+
+# boot sections follow
+# each is implicitly numbered from 0 in the order of appearance below
+#
+# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
+#
+#-*
+hiddenmenu
+
+# (0) normal
+title LinHes
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M console=tty1
+initrd /boot/kernel26.img
+
+# (1) bootsplash
+title LinHes-splashy
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit vmalloc=192M quiet vga=0x314 splash=silent,theme:linhes console=tty1
+initrd /boot/kernel26.img
+
+# (2) noautologin
+title LinHES-nologin
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro init=/sbin/runit quiet vga=0x314 splash=silent,theme:linhes console=tty1 nox
+initrd /boot/kernel26.img
+
+
+# (3) normal
+title LinHes-init
+root (hd0,0)
+kernel /boot/vmlinuz26 root=/dev/hda1 ro console=tty1
+initrd /boot/kernel26.img
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/rc.conf b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/rc.conf
new file mode 100755
index 0000000..43a275f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/.post_process/rc.conf
@@ -0,0 +1,71 @@
+#
+# /etc/rc.conf - Main Configuration for Arch Linux
+#
+
+#
+# -----------------------------------------------------------------------
+# LOCALIZATION
+# -----------------------------------------------------------------------
+#
+# LOCALE: available languages can be listed with the 'locale -a' command
+# HARDWARECLOCK: set to "UTC" or "localtime"
+# TIMEZONE: timezones are found in /usr/share/zoneinfo
+# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
+# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
+# CONSOLEMAP: found in /usr/share/kbd/consoletrans
+# USECOLOR: use ANSI color sequences in startup messages
+#
+LOCALE="en_US.utf-8"
+HARDWARECLOCK="UTC"
+TIMEZONE="US/Central"
+KEYMAP="us"
+CONSOLEFONT=
+CONSOLEMAP=
+USECOLOR="yes"
+
+#
+# -----------------------------------------------------------------------
+# HARDWARE
+# -----------------------------------------------------------------------
+#
+# Scan hardware and load required modules at bootup
+MOD_AUTOLOAD="yes"
+if [ -f /etc/systemconfig ]
+then
+ . /etc/systemconfig
+fi
+
+if [ x$Audiotype = xOSS -a ! -f /tmp/.alsatest ]
+then
+ ALSABLACKLIST="!soundcore"
+else
+ if [ x$Audiotype = xOSS ]
+ then
+ ALSABLACKLIST="!soundcore"
+ else
+ ALSABLACKLIST=""
+ fi
+fi
+
+# Module Blacklist - modules in this list will never be loaded by udev
+MOD_BLACKLIST_=($ALSABLACKLIST !snd-pcsp !nouveau)
+#
+# Modules to load at boot-up (in this order)
+# - prefix a module with a ! to blacklist it
+#
+MODULES=($MOD_BLACKLIST_)
+# Scan for LVM volume groups at startup, required if you use LVM
+USELVM="no"
+
+#
+# -----------------------------------------------------------------------
+# NETWORKING
+# -----------------------------------------------------------------------
+#
+HOSTNAME=`cat /etc/hostname`
+
+#The following is only used on the install. After the first boot everything is set from /etc/net.
+
+#DAEMONS=(syslog-ng network netfs crond)
+DAEMONS=(fbsplash !syslog-ng !hotplug !pcmcia !network !mysqld dbus avahi-daemon)
+# End of file
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/LinHES-install.sh b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/LinHES-install.sh
new file mode 100755
index 0000000..2b0cdb2
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/LinHES-install.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+#redirect stderr to stdout, then rediret stdout to file
+. /etc/profile
+exec 2>&1
+exec > /tmp/mythvantage_install.log
+#/usr/bin/nvidia-settings -a InitialPixmapPlacement=2
+#keylaunch &
+#/usr/bin/tilda &
+#/usr/X11R6/bin/unclutter -root -idle 0 -jitter 400 -noevents &
+export MALLOC_CHECK_=0
+
+WM="e16 -P /usr/share/wm_data/e16_config_dir/"
+$WM &
+pid=$!
+
+xset s off
+xset -dpms
+xhost +
+xdotool mousemove 0 0
+
+cp -f /etc/keylaunchrc /root/.keylaunchrc
+/usr/bin/keylaunch &
+
+
+CMDLINE=$(cat /proc/cmdline)
+echo $CMDLINE |grep -q nfsroot
+NFSROOT=$?
+echo $CMDLINE |grep -q clean_upgrade
+if [ $? = 0 ]
+then
+ export CLEAN_UPGRADE=YES
+else
+ export CLEAN_UPGRADE=NO
+fi
+
+#show the readme
+MythVantage -r
+
+if [ x$NFSROOT = x1 ]
+then
+ unbuffer MythVantage -L &
+else
+ NETBOOT=YES MythVantage &
+fi
+
+
+wait $pid
+
+
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/startx b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/startx
new file mode 100755
index 0000000..068263f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/root/startx
@@ -0,0 +1,35 @@
+#!/bin/bash
+. /etc/profile
+
+export USER=root
+export HOME=/root
+
+CMDLINE=$(cat /proc/cmdline)
+TEMPVAR=${CMDLINE#*ip=}
+IP=${TEMPVAR%% *}
+echo $CMDLINE |grep -q vnc
+USEVNC=$?
+
+if [ x$USEVNC = x1 ]
+then
+ RUNP=1 $MV_ROOT/bin/xconfig.sh 2>/dev/null
+ startx /root/LinHES-install.sh -- -logverbose 6 -allowMouseOpenFail 2>/tmp/x.log
+else
+ #VNC
+ pacman -S --force --noconfirm tigervnc
+ /etc/rc.d/dbus start
+ cp -f $TEMPLATES/vnc.service /etc/avahi/services/
+ /etc/rc.d/avahi-daemon start
+ cd /root
+ mkdir .vnc
+ echo 54321 |vncpasswd -f > /root/.vnc/passwd
+ chmod 500 /root/.vnc/passwd
+ rm -f /root/.vnc/xstartup 2>/dev/null
+ ln -s /root/LinHES-install.sh /root/.vnc/xstartup
+ vncserver
+ echo "The VNC server password is: 54321"
+ echo "Please connect to one of these ip's"
+ echo "-------------------------------------------"
+ ip addr show |grep "inet" |grep -v inet6|cut -d\/ -f1
+ echo "-------------------------------------------"
+fi
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/usr/bin/autologin b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/usr/bin/autologin
new file mode 100755
index 0000000..c124f9e
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/usr/bin/autologin
@@ -0,0 +1,2 @@
+#!/bin/bash
+/bin/login -f root
diff --git a/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/usr/bin/go.sh b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/usr/bin/go.sh
new file mode 100644
index 0000000..e6222e4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/crap/root-image.old_can_be_delted/usr/bin/go.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+/usr/MythVantage/bin/mv_install.py --rootdisk=sda --rootfs=ext3 --rootsize=5000 --datafs=ext3 --datasize=50 --datadisk=sda --swapsize=2 -c full_install
diff --git a/build_tools/archiso-19/mythvantage/efiboot/loader/entries/archiso-x86_64-cd.conf b/build_tools/archiso-19/mythvantage/efiboot/loader/entries/archiso-x86_64-cd.conf
new file mode 100644
index 0000000..9892c59
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/efiboot/loader/entries/archiso-x86_64-cd.conf
@@ -0,0 +1,4 @@
+title Arch Linux archiso x86_64 UEFI CD
+linux /EFI/archiso/vmlinuz.efi
+initrd /EFI/archiso/archiso.img
+options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
diff --git a/build_tools/archiso-19/mythvantage/efiboot/loader/entries/archiso-x86_64-usb.conf b/build_tools/archiso-19/mythvantage/efiboot/loader/entries/archiso-x86_64-usb.conf
new file mode 100644
index 0000000..f61c532
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/efiboot/loader/entries/archiso-x86_64-usb.conf
@@ -0,0 +1,4 @@
+title Arch Linux archiso x86_64 UEFI USB
+linux /%INSTALL_DIR%/boot/x86_64/vmlinuz
+initrd /%INSTALL_DIR%/boot/x86_64/archiso.img
+options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL%
diff --git a/build_tools/archiso-19/mythvantage/efiboot/loader/entries/uefi-shell-v1-x86_64.conf b/build_tools/archiso-19/mythvantage/efiboot/loader/entries/uefi-shell-v1-x86_64.conf
new file mode 100644
index 0000000..9597ff2
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/efiboot/loader/entries/uefi-shell-v1-x86_64.conf
@@ -0,0 +1,2 @@
+title UEFI Shell x86_64 v1
+efi /EFI/shellx64_v1.efi
diff --git a/build_tools/archiso-19/mythvantage/efiboot/loader/entries/uefi-shell-v2-x86_64.conf b/build_tools/archiso-19/mythvantage/efiboot/loader/entries/uefi-shell-v2-x86_64.conf
new file mode 100644
index 0000000..0dde77a
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/efiboot/loader/entries/uefi-shell-v2-x86_64.conf
@@ -0,0 +1,2 @@
+title UEFI Shell x86_64 v2
+efi /EFI/shellx64_v2.efi
diff --git a/build_tools/archiso-19/mythvantage/efiboot/loader/loader.conf b/build_tools/archiso-19/mythvantage/efiboot/loader/loader.conf
new file mode 100644
index 0000000..62c4a83
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/efiboot/loader/loader.conf
@@ -0,0 +1,2 @@
+timeout 3
+default archiso-x86_64
diff --git a/build_tools/archiso-19/mythvantage/go.sh b/build_tools/archiso-19/mythvantage/go.sh
new file mode 100755
index 0000000..399cae8
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/go.sh
@@ -0,0 +1,82 @@
+#!/bin/bash
+
+function copy_custom(){
+ cp -f profile_files/$1.png syslinux/splash.png || exit 1
+ cp -f profile_files/pacman.conf . ||exit 1
+ cat profile_files/$1.pacman >> ./pacman.conf || exit 1
+
+ cp -f profile_files/packages.x86_64 . || exit 1
+ cp -f profile_files/packages.x86_64.cache . || exit 1
+ cp -f profile_files/pristine.list . || exit 1
+ }
+
+
+
+
+declare -a menuarray
+
+menuarray=( 'local_mirror_testing'
+ 'local_disk_testing'
+ 'remote_testing'
+ '-----------------'
+ 'local_mirror_release'
+ 'remote_release' )
+
+#echo ${array1[@]}
+
+element_count=${#menuarray[*]}
+element_count=`expr $element_count - 1`
+clear
+echo
+echo
+if [ x$1 = x ]
+then
+ for i in `seq 0 $element_count`
+ do
+ echo "$i ) ${menuarray[$i]}"
+ echo
+ done
+ echo "Select the profile to use:"
+ read a
+ if [ "x"$a = "x" ]
+ then
+ a="0"
+ fi
+ profile=${menuarray[$a]}
+
+ echo $profile
+ copy_custom $profile
+ echo "Creating ISO"
+
+ if [ ! -e work/x86_64/airootfs/dev/zero ]
+ then
+ rm -rf work/
+ else
+ echo "dev appears to be mounted in work"
+ exit 2
+ fi
+ #./build.sh clean all
+ ./build.sh -vv build single netinstall
+ status=$?
+ if [ $status = 0 ]
+ then
+# if [ -f /usr/bin/isohybrid ]
+# then
+# echo "Running isohybrid..."
+# /usr/bin/isohybrid /tmp/test2.iso
+# else
+# echo "Syslinux needs to be installed to run isohybrid"
+# fi
+
+ echo "*****************************************************"
+ echo "your $profile iso is complete (out/test3.iso)"
+ echo "*****************************************************"
+ rm -f pacman.conf
+ rm -f packages.x86_64
+ rm -f packages.x86_64.cache
+ rm -f pristine.list
+ fi
+
+ date
+ #cd $OLD
+fi \ No newline at end of file
diff --git a/build_tools/archiso-19/mythvantage/isolinux/isolinux.cfg b/build_tools/archiso-19/mythvantage/isolinux/isolinux.cfg
new file mode 100644
index 0000000..10fd285
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/isolinux/isolinux.cfg
@@ -0,0 +1,6 @@
+PATH /%INSTALL_DIR%/boot/syslinux/
+DEFAULT loadconfig
+
+LABEL loadconfig
+ CONFIG /%INSTALL_DIR%/boot/syslinux/archiso.cfg
+ APPEND /%INSTALL_DIR%/
diff --git a/build_tools/archiso-19/mythvantage/mkinitcpio.conf b/build_tools/archiso-19/mythvantage/mkinitcpio.conf
new file mode 100644
index 0000000..c2d21e4
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/mkinitcpio.conf
@@ -0,0 +1,7 @@
+#HOOKS="base udev memdisk archiso_shutdown archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block pcmcia filesystems keyboard"
+#COMPRESSION="xz"
+
+HOOKS="base udev memdisk archiso_shutdown archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms pata scsi sata virtio usb fw pcmcia filesystems usbinput"
+
+COMPRESSION="xz"
+
diff --git a/build_tools/archiso-19/mythvantage/profile_files/boot_background.psd b/build_tools/archiso-19/mythvantage/profile_files/boot_background.psd
new file mode 100755
index 0000000..f202cbe
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/boot_background.psd
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/profile_files/local_disk_testing.pacman b/build_tools/archiso-19/mythvantage/profile_files/local_disk_testing.pacman
new file mode 100644
index 0000000..0c97f29
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/local_disk_testing.pacman
@@ -0,0 +1,9 @@
+[core-testing]
+SigLevel = Optional TrustedOnly
+Server = file:///data/pkg_repo/$arch/$repo/
+
+[extra-testing]
+SigLevel = Optional TrustedOnly
+Server = file:///data/pkg_repo/$arch/$repo/
+
+
diff --git a/build_tools/archiso-19/mythvantage/profile_files/local_disk_testing.png b/build_tools/archiso-19/mythvantage/profile_files/local_disk_testing.png
new file mode 100755
index 0000000..5c16d93
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/local_disk_testing.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/profile_files/local_mirror_release.pacman b/build_tools/archiso-19/mythvantage/profile_files/local_mirror_release.pacman
new file mode 100644
index 0000000..c822544
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/local_mirror_release.pacman
@@ -0,0 +1,7 @@
+[core]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
+
+[extra]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
diff --git a/build_tools/archiso-19/mythvantage/profile_files/local_mirror_release.png b/build_tools/archiso-19/mythvantage/profile_files/local_mirror_release.png
new file mode 100755
index 0000000..3493d0c
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/local_mirror_release.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/profile_files/local_mirror_testing.pacman b/build_tools/archiso-19/mythvantage/profile_files/local_mirror_testing.pacman
new file mode 100644
index 0000000..24f06d6
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/local_mirror_testing.pacman
@@ -0,0 +1,7 @@
+[core-testing]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
+
+[extra-testing]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
diff --git a/build_tools/archiso-19/mythvantage/profile_files/local_mirror_testing.png b/build_tools/archiso-19/mythvantage/profile_files/local_mirror_testing.png
new file mode 100755
index 0000000..7d7972f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/local_mirror_testing.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/profile_files/packages.i686 b/build_tools/archiso-19/mythvantage/profile_files/packages.i686
new file mode 100644
index 0000000..6012e7c
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/packages.i686
@@ -0,0 +1,46 @@
+aif
+b43-fwcutter
+btrfs-progs
+crda
+darkhttpd
+ddrescue
+dhclient
+dialog
+dmraid
+dnsmasq
+dnsutils
+dosfstools
+efibootmgr
+elinks
+gnu-netcat
+gptfdisk
+haveged
+hdparm
+ipw2100-fw
+ipw2200-fw
+irssi
+lftp
+lilo
+linux-atm
+mtools
+netcfg
+nfs-utils
+nilfs-utils
+nmap
+ntfs-3g
+ntfsprogs
+ntp
+openconnect
+openssh
+openvpn
+parted
+pptpclient
+rp-pppoe
+rsync
+smartmontools
+speedtouch
+tcpdump
+vpnc
+wireless_tools
+wpa_actiond
+zd1211-firmware
diff --git a/build_tools/archiso-19/mythvantage/profile_files/packages.x86_64 b/build_tools/archiso-19/mythvantage/profile_files/packages.x86_64
new file mode 100644
index 0000000..e5d5600
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/packages.x86_64
@@ -0,0 +1,153 @@
+#sysvinit
+initscripts
+#b43-fwcutter
+acpid
+btrfs-progs
+crda
+#darkhttpd
+ddrescue
+#dhclient
+dhcpcd
+dialog
+dmraid
+#dnsmasq
+dnsutils
+dcron
+dosfstools
+dvb-firmware
+efibootmgr
+#elinks
+#gnu-netcat
+gptfdisk
+#fluxbox
+plymouth
+plymouth-theme-linhes-logo
+#haveged
+libhdhomerun
+hdparm
+ipw2100-fw
+ipw2200-fw
+iputils
+#irssi
+#lftp
+#lilo
+#linux-atm
+lirc
+mtools
+#netcfg
+net-tools
+nfs-utils
+nilfs-utils
+#nmap
+#ntfs-3g
+#ntfsprogs
+ntp
+#openconnect
+openssh
+#openvpn
+parted
+#pptpclient
+#rp-pppoe
+rsync
+#smartmontools
+#speedtouch
+#tcpdump
+#vpnc
+v86d
+wireless_tools
+wpa_actiond
+zd1211-firmware
+python2
+LinHES-config
+bc
+libstatgrab
+mysql-python
+expect
+curl
+dnsutils
+parted
+sg3_utils
+nmbscan
+squashfs-tools
+rsync
+python-parted
+python2-pexpect
+python-netifaces
+python-iplib
+xorg-apps
+xorg-fonts
+windowmaker
+xf86-video-vesa
+xorg-xinit
+xorg-server
+xorg-bdftopcf
+xorg-docs
+xorg-font-util
+xorg-fonts-100dpi
+#xorg-fonts-75dpi
+xorg-fonts-encodings
+xorg-iceauth
+xorg-luit
+xorg-mkfontdir
+xorg-mkfontscale
+#xorg-res-utils
+xorg-server
+xorg-sessreg
+xorg-setxkbmap
+xorg-x11perf
+xorg-xauth
+xorg-xbacklight
+xorg-xcmsdb
+xorg-xcursorgen
+xorg-xdpyinfo
+xorg-xdriinfo
+xorg-xev
+#xorg-xgamma
+xorg-xhost
+xorg-xinput
+xorg-xkbcomp
+xorg-xkbevd
+xorg-xkbutils
+xorg-xkill
+xorg-xlsatoms
+xorg-xlsclients
+xorg-xmodmap
+xorg-xpr
+xorg-xprop
+xorg-xrandr
+xorg-xrdb
+xorg-xrefresh
+xorg-xset
+xorg-xsetroot
+xorg-xvinfo
+xorg-xwd
+xorg-xwininfo
+xorg-xwud
+xterm
+xkeyboard-config
+grub-common
+grub-bios
+LinHES-config
+LinHES-system
+mythtv
+mysql
+etcnet
+#alt_wm
+e16_theme_settings
+wmaker_settings
+mlocate
+
+mythinstall
+mytharchive
+mythbrowser
+mythgallery
+mythgame
+mythmusic
+mythnews
+mythweather
+linhes-theme
+
+ivtv-utils
+alsa-utils
+
+ceton_infinitv
diff --git a/build_tools/archiso-19/mythvantage/profile_files/packages.x86_64.cache b/build_tools/archiso-19/mythvantage/profile_files/packages.x86_64.cache
new file mode 100644
index 0000000..33b41f9
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/packages.x86_64.cache
@@ -0,0 +1,29 @@
+runit-scripts
+#linux
+mythdb-initial
+mythnetvision
+tigervnc
+x11vnc
+nvidia
+nvidia-utils
+vdpauinfo
+lighttpd
+mythweb
+nfs-utils
+samba
+mplayer
+lcdproc
+mythappletrailers
+xscreensaver
+supplemental-web
+supplemental-web-slave
+#romdb
+#miro
+oss
+xf86-input-vmmouse
+xf86-video-vmware
+xf86-video-vesa
+xf86-video-intel
+libgl
+svga-dri
+nss-mdns
diff --git a/build_tools/archiso-19/mythvantage/profile_files/pacman.conf b/build_tools/archiso-19/mythvantage/profile_files/pacman.conf
new file mode 100644
index 0000000..46538e9
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/pacman.conf
@@ -0,0 +1,70 @@
+#
+# /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 = /data/storage/disk0/pacman/pkg
+#LogFile = /var/log/pacman.log
+#GPGDir = /etc/pacman.d/gnupg/
+HoldPkg = pacman glibc
+#XferCommand = /usr/bin/curl -C - -f %u > %o
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+#CleanMethod = KeepInstalled
+Architecture = auto
+
+# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
+#IgnorePkg =
+#IgnoreGroup =
+
+#NoUpgrade =
+#NoExtract =
+
+# Misc options
+#UseSyslog
+#UseDelta
+#TotalDownload
+# We cannot check disk space from within a chroot environment
+#CheckSpace
+VerbosePkgLists
+
+# By default, pacman accepts packages signed by keys that its local keyring
+# trusts (see pacman-key and its man page), as well as unsigned packages.
+SigLevel = Optional TrustedOnly
+
+# NOTE: You must run `pacman-key --init` before first using pacman; the local
+# keyring can then be populated with the keys of all official Arch Linux
+# packagers with `pacman-key --populate archlinux`.
+
+#
+# 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
+# - URLs will have $arch replaced by the name of the architecture
+#
+# 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.
+
+
+
diff --git a/build_tools/archiso-19/mythvantage/profile_files/pristine.list b/build_tools/archiso-19/mythvantage/profile_files/pristine.list
new file mode 100755
index 0000000..a369353
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/pristine.list
@@ -0,0 +1,4 @@
+./etc/hosts
+./etc/rc.local
+./boot
+./var/lib/pacman/ \ No newline at end of file
diff --git a/build_tools/archiso-19/mythvantage/profile_files/remote_release.pacman b/build_tools/archiso-19/mythvantage/profile_files/remote_release.pacman
new file mode 100644
index 0000000..e9ace81
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/remote_release.pacman
@@ -0,0 +1,7 @@
+[core]
+SigLevel = Optional TrustedOnly
+Server = http://bits.linhes.org/repo/$arch/$repo/
+
+[extra]
+SigLevel = Optional TrustedOnly
+Server = http://bits.linhes.org/repo/$arch/$repo/
diff --git a/build_tools/archiso-19/mythvantage/profile_files/remote_release.png b/build_tools/archiso-19/mythvantage/profile_files/remote_release.png
new file mode 100755
index 0000000..fcbadd7
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/remote_release.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/profile_files/remote_testing.pacman b/build_tools/archiso-19/mythvantage/profile_files/remote_testing.pacman
new file mode 100644
index 0000000..000e6a1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/remote_testing.pacman
@@ -0,0 +1,7 @@
+[core-testing]
+SigLevel = Optional TrustedOnly
+Server = http://bits.linhes.org/repo/$arch/$repo/
+
+[extra-testing]
+SigLevel = Optional TrustedOnly
+Server = http://bits.linhes.org/repo/$arch/$repo/
diff --git a/build_tools/archiso-19/mythvantage/profile_files/remote_testing.png b/build_tools/archiso-19/mythvantage/profile_files/remote_testing.png
new file mode 100755
index 0000000..56b8978
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/profile_files/remote_testing.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/syslinux/archiso.cfg b/build_tools/archiso-19/mythvantage/syslinux/archiso.cfg
new file mode 100644
index 0000000..126fc77
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/syslinux/archiso.cfg
@@ -0,0 +1,11 @@
+DEFAULT select
+
+LABEL select
+COM32 boot/syslinux/whichsys.c32
+APPEND -pxe- pxe -sys- sys -iso- sys
+
+LABEL pxe
+CONFIG boot/syslinux/archiso_pxe_inc.cfg
+
+LABEL sys
+CONFIG boot/syslinux/archiso_sys_inc.cfg
diff --git a/build_tools/archiso-19/mythvantage/syslinux/archiso_head.cfg b/build_tools/archiso-19/mythvantage/syslinux/archiso_head.cfg
new file mode 100644
index 0000000..25911a1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/syslinux/archiso_head.cfg
@@ -0,0 +1,44 @@
+SERIAL 0 38400
+UI boot/syslinux/vesamenu.c32
+MENU TITLE LinHES: The Linux Home Entertainment System
+MENU BACKGROUND boot/syslinux/splash.png
+
+prompt 1
+TIMEOUT 300
+TOTALTIMEOUT 9000
+DEFAULT linux
+
+#MENU WIDTH 78
+#MENU MARGIN 4
+#MENU ROWS 6
+#MENU VSHIFT 10
+#MENU TABMSGROW 14
+#MENU CMDLINEROW 14
+MENU HELPMSGROW 19
+MENU HELPMSGENDROW 29
+
+MENU SEPARATOR
+
+MENU ROWS 10
+MENU CMDLINEROW 17
+MENU TIMEOUTROW 15
+MENU TABMSGROW 17
+MENU WIDTH 78
+
+menu color border 30;44 #00000000 #00000000 none
+menu color sel 7 #ff000000 #ffebb91c rev
+menu color title 0 #ffffffff #ff0072BB
+menu color tabmsg 0 #ff000000 #00000000 none
+menu color unsel 0 #ffffffff #ff0072BB
+
+menu color hotsel 0 #ff000000 #ffffffff
+menu color hotkey 7 #ffffffff #ff000000
+#menu color timeout_msg 0 #fffffff #ffffffff
+#menu color timeout 0 #fffffff #ffffffff
+menu color cmdline 0 #ff000000 #00000000 none
+
+
+menu COLOR timeout_msg 37;40 #80ffffff #00000000 std
+menu COLOR timeout 1;37;40 #c0ffffff #00000000 std
+
+# Refer to http://syslinux.zytor.com/wiki/index.php/Doc/menu
diff --git a/build_tools/archiso-19/mythvantage/syslinux/archiso_pxe_inc.cfg b/build_tools/archiso-19/mythvantage/syslinux/archiso_pxe_inc.cfg
new file mode 100644
index 0000000..b2b6887
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/syslinux/archiso_pxe_inc.cfg
@@ -0,0 +1,3 @@
+INCLUDE boot/syslinux/archiso_head.cfg
+INCLUDE boot/syslinux/archiso_pxe.cfg
+INCLUDE boot/syslinux/archiso_tail.cfg
diff --git a/build_tools/archiso-19/mythvantage/syslinux/archiso_sys.cfg b/build_tools/archiso-19/mythvantage/syslinux/archiso_sys.cfg
new file mode 100755
index 0000000..58859d1
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/syslinux/archiso_sys.cfg
@@ -0,0 +1,40 @@
+
+MENU TITLE LinHES: The Linux Home Entertainment System
+
+label linux
+MENU LABEL LinHES (default)
+TEXT HELP
+Boot the LinHES live image. Install LinHES with splash or perform
+system maintenance. Add NoX to skip xwindows.
+ENDTEXT
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% splash console=tty1
+
+
+label linux-nosplash
+MENU LABEL LinHES (no splash on install)
+TEXT HELP
+Boot the LinHES live image. Install LinHES without splash or perform
+system maintenance. Add NoX to skip xwindows.
+ENDTEXT
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% console=tty1
+
+label linux-vnc
+MENU LABEL LinHES (VNC install)
+TEXT HELP
+Boot the LinHES live image. Install LinHES or perform system
+maintenance over VNC. DHCP will be used for the network.
+ENDTEXT
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% console=tty1 vnc cip=dhcp
+
+label special
+MENU LABEL Special Hardware
+KERNEL boot/syslinux/vesamenu.c32
+APPEND boot/syslinux/hardsub.cfg
+
+MENU SEPARATOR
diff --git a/build_tools/archiso-19/mythvantage/syslinux/archiso_sys_inc.cfg b/build_tools/archiso-19/mythvantage/syslinux/archiso_sys_inc.cfg
new file mode 100644
index 0000000..56c6a17
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/syslinux/archiso_sys_inc.cfg
@@ -0,0 +1,3 @@
+INCLUDE boot/syslinux/archiso_head.cfg
+INCLUDE boot/syslinux/archiso_sys.cfg
+INCLUDE boot/syslinux/archiso_tail.cfg
diff --git a/build_tools/archiso-19/mythvantage/syslinux/archiso_tail.cfg b/build_tools/archiso-19/mythvantage/syslinux/archiso_tail.cfg
new file mode 100644
index 0000000..a55548c
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/syslinux/archiso_tail.cfg
@@ -0,0 +1,27 @@
+LABEL existing
+TEXT HELP
+Boot an existing operating system. Press TAB to edit the disk and partition
+number to boot.
+ENDTEXT
+MENU LABEL Boot existing OS
+COM32 boot/syslinux/chain.c32
+APPEND hd0 0
+
+# http://www.memtest.org/
+LABEL memtest
+MENU LABEL Run Memtest86+ (RAM test)
+LINUX boot/memtest
+
+# http://hdt-project.org/
+LABEL hdt
+MENU LABEL Hardware Information (HDT)
+COM32 boot/syslinux/hdt.c32
+APPEND modules_alias=boot/syslinux/hdt/modalias.gz pciids=boot/syslinux/hdt/pciids.gz
+
+LABEL reboot
+MENU LABEL Reboot
+COM32 boot/syslinux/reboot.c32
+
+LABEL poweroff
+MENU LABEL Power Off
+COMBOOT boot/syslinux/poweroff.com
diff --git a/build_tools/archiso-19/mythvantage/syslinux/hardsub.cfg b/build_tools/archiso-19/mythvantage/syslinux/hardsub.cfg
new file mode 100755
index 0000000..ca60961
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/syslinux/hardsub.cfg
@@ -0,0 +1,58 @@
+SERIAL 0 38400
+UI boot/syslinux/vesamenu.c32
+prompt 0
+#timeout 300
+INCLUDE boot/syslinux/archiso_head.cfg
+
+MENU TITLE Systems menu
+
+label atomic
+MENU LABEL LinHES on Atomic Ant!
+kernel /boot/vmlinuz
+append initrd=/boot/larch.img vga=792 quiet splash=silent,theme:linhes console=tty1 disablemodules=agpart,intel_agp
+
+
+label linux-serial
+MENU LABEL use serial port ttyS0 for ir receiver
+TEXT HELP
+Boot the LinHES live medium. It allows you to install LinHES or
+perform system maintenance.
+ENDTEXT
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% console=tty1 remoteport=ttyS0 remotebucket=common remote=mceusb
+
+label linux-vesa
+MENU LABEL Force use of vesa driver
+TEXT HELP
+Boot the LinHES live medium. It allows you to install LinHES or
+perform system maintenance. Force the use of the xorg vesa driver
+ENDTEXT
+LINUX boot/x86_64/vmlinuz
+INITRD boot/x86_64/archiso.img
+APPEND archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% console=tty1 forceXvesa
+
+#label dragon
+#MENU LABEL Dragon Version 1
+#kernel /boot/vmlinuz26
+#append initrd=/boot/larch.img type=dragon vga=0x314 quiet splash=silent,theme:linhes console=tty1
+
+#label dragon2
+#MENU LABEL Dragon Version 2
+#kernel /boot/vmlinuz26
+#append initrd=/boot/larch.img type=dragon2 vga=0x314 quiet splash=silent,theme:linhes console=tty1
+
+#label ausdragon
+#MENU LABEL Australian Dragon
+#kernel /boot/vmlinuz26
+#append initrd=/boot/larch.img type=ausdragon vga=0x314 quiet splash=silent,theme:linhes console=tty1
+
+#label 8400
+#MENU LABEL For the Nvidia 8400 chipset.
+#kernel /boot/vmlinuz26
+#append initrd=/boot/larch.img vga=792 quiet splash=silent,theme:linhes console=tty1 disablemodules=agpart
+
+label goback
+MENU LABEL Back
+kernel boot/syslinux/vesamenu.c32
+append menu boot/syslinux/archiso_sys_inc.cfg
diff --git a/build_tools/archiso-19/mythvantage/syslinux/splash.png b/build_tools/archiso-19/mythvantage/syslinux/splash.png
new file mode 100644
index 0000000..7d7972f
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/syslinux/splash.png
Binary files differ
diff --git a/build_tools/archiso-19/mythvantage/syslinux/syslinux.cfg b/build_tools/archiso-19/mythvantage/syslinux/syslinux.cfg
new file mode 100644
index 0000000..3ee98de
--- /dev/null
+++ b/build_tools/archiso-19/mythvantage/syslinux/syslinux.cfg
@@ -0,0 +1,5 @@
+DEFAULT loadconfig
+
+LABEL loadconfig
+ CONFIG archiso.cfg
+ APPEND ../../
diff --git a/build_tools/archiso/mythvantage/build.sh.backup b/build_tools/archiso/mythvantage/build.sh.backup
index 243762e..e2659f7 100755
--- a/build_tools/archiso/mythvantage/build.sh.backup
+++ b/build_tools/archiso/mythvantage/build.sh.backup
@@ -5,19 +5,30 @@ iso_label="linhes_$(date +%Y%m)"
iso_version=$(date +%Y.%m.%d)
install_dir=arch
arch=$(uname -m)
-work_dir=work
-out_dir=out
+work_dir=/tmp/work
+out_dir=/tmp
verbose=""
cmd_args=""
script_path=$(readlink -f ${0%/*})
+pacman_cache_files="data-storage-disk0-pacman-pkg"
+cache_dirs="/data/storage/disk0/pacman/pkg"
+pacman_cache=${cache_dirs}
+
setup_workdir() {
- cache_dirs=($(pacman -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g'))
+ #JM
+ #this is complicated way todo a mv ${script_path}/pacman.conf $work_dir/pacman.conf
+ #but we can't do a move because it's called at least 3 times.
+ #cache_dirs=($(pacman --config ${script_path}/pacman.conf -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g'))
+ #cache_dirs=($(pacman -C ${pacman_conf} -v 2>&1 | grep '^Cache Dirs:' | sed 's/Cache Dirs:\s*//g'))
mkdir -p "${work_dir}"
+
pacman_conf="${work_dir}/pacman.conf"
+
sed -r "s|^#?\\s*CacheDir.+|CacheDir = $(echo -n ${cache_dirs[@]})|g" \
"${script_path}/pacman.conf" > "${pacman_conf}"
+
}
# Base installation (root-image)
@@ -164,25 +175,29 @@ make_cache_repo() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]
then
local _url _urls _pkg_name _dst _pkgs _cache_dir
- mkdir -p ${work_dir}/root-image/var/cache/pacman/pkg
+ mkdir -p ${work_dir}/root-image/${pacman_cache}
old_cache=${work_dir}/old_cache
mkdir -p "$old_cache"
pacman --config "${pacman_conf}" -Sy -r ${work_dir}/root-image
echo "------------------------------------------"
for i in $(cat $script_path/packages.${arch}.cache)
do
- echo "Adding $i to pacman cache"
- _urls=$(pacman --config "${pacman_conf}" -Sp -r ${work_dir}/root-image ${i})
- cd $old_cache
- for url in ${_urls}
- do
- echo "downloading $url"
- wget -N ${url}
- done
- cd -
+ if [[ $i != "#"* ]]
+ then
+ echo "Adding $i to pacman cache"
+ _urls=$(pacman --config "${pacman_conf}" -Sp -r ${work_dir}/root-image ${i})
+ cd $old_cache
+ for url in ${_urls}
+ do
+ echo "downloading $url"
+ #wget -N ${url}
+ curl -O ${url}
+ done
+ cd -
+ fi
done
- cp -rp $old_cache/* ${work_dir}/root-image/var/cache/pacman/pkg
+ cp -rp $old_cache/* ${work_dir}/root-image/${pacman_cache}
fi
echo "------------------------------------------"
@@ -192,7 +207,7 @@ make_cache_repo() {
make_var_cache_pacman(){
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
- mv ${work_dir}/root-image/var/cache/pacman ${work_dir}/var-cache-pacman
+ mv ${work_dir}/root-image/${pacman_cache} ${work_dir}/${pacman_cache_files}
: > ${work_dir}/build.${FUNCNAME}
fi
@@ -209,21 +224,25 @@ make_var_lib_pacman(){
# Customize installation (root-image)
make_customize_root_image() {
if [[ ! -e ${work_dir}/build.${FUNCNAME} ]]; then
+ chown -R root:root ${script_path}/root-image
cp -af ${script_path}/root-image ${work_dir}
chmod 750 ${work_dir}/root-image/etc/sudoers.d
- chmod 440 ${work_dir}/root-image/etc/sudoers.d/g_wheel
+ #JM
+ #chmod 440 ${work_dir}/root-image/etc/sudoers.d/g_wheel
mkdir -p ${work_dir}/root-image/etc/pacman.d
- wget -O ${work_dir}/root-image/etc/pacman.d/mirrorlist 'https://www.archlinux.org/mirrorlist/?country=all&protocol=http&use_mirror_status=on'
- sed -i "s/#Server/Server/g" ${work_dir}/root-image/etc/pacman.d/mirrorlist
+ #JM
+ #mkdir -p ${work_dir}/storage/data/home
+ #wget -O ${work_dir}/root-image/etc/pacman.d/mirrorlist 'https://www.archlinux.org/mirrorlist/?country=all&protocol=http&use_mirror_status=on'
+ #sed -i "s/#Server/Server/g" ${work_dir}/root-image/etc/pacman.d/mirrorlist
#sed -i 's/#\(en_US\.UTF-8\)/\1/' ${work_dir}/root-image/etc/locale.gen
mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
-r 'locale-gen' \
run
#JM
- mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
-# -r 'useradd -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv' \
- run
- : > ${work_dir}/build.${FUNCNAME}
+ #mkarchiso ${verbose} -w "${work_dir}" -C "${pacman_conf}" -D "${install_dir}" \
+ # -r 'useradd -b "/storage/data/home" -m -p "" -G "audio,disk,optical,wheel,storage,video,users" mythtv' \
+ # run
+ #: > ${work_dir}/build.${FUNCNAME}
fi
}
diff --git a/build_tools/archiso/mythvantage/packages.x86_64 b/build_tools/archiso/mythvantage/packages.x86_64
new file mode 100644
index 0000000..e5d5600
--- /dev/null
+++ b/build_tools/archiso/mythvantage/packages.x86_64
@@ -0,0 +1,153 @@
+#sysvinit
+initscripts
+#b43-fwcutter
+acpid
+btrfs-progs
+crda
+#darkhttpd
+ddrescue
+#dhclient
+dhcpcd
+dialog
+dmraid
+#dnsmasq
+dnsutils
+dcron
+dosfstools
+dvb-firmware
+efibootmgr
+#elinks
+#gnu-netcat
+gptfdisk
+#fluxbox
+plymouth
+plymouth-theme-linhes-logo
+#haveged
+libhdhomerun
+hdparm
+ipw2100-fw
+ipw2200-fw
+iputils
+#irssi
+#lftp
+#lilo
+#linux-atm
+lirc
+mtools
+#netcfg
+net-tools
+nfs-utils
+nilfs-utils
+#nmap
+#ntfs-3g
+#ntfsprogs
+ntp
+#openconnect
+openssh
+#openvpn
+parted
+#pptpclient
+#rp-pppoe
+rsync
+#smartmontools
+#speedtouch
+#tcpdump
+#vpnc
+v86d
+wireless_tools
+wpa_actiond
+zd1211-firmware
+python2
+LinHES-config
+bc
+libstatgrab
+mysql-python
+expect
+curl
+dnsutils
+parted
+sg3_utils
+nmbscan
+squashfs-tools
+rsync
+python-parted
+python2-pexpect
+python-netifaces
+python-iplib
+xorg-apps
+xorg-fonts
+windowmaker
+xf86-video-vesa
+xorg-xinit
+xorg-server
+xorg-bdftopcf
+xorg-docs
+xorg-font-util
+xorg-fonts-100dpi
+#xorg-fonts-75dpi
+xorg-fonts-encodings
+xorg-iceauth
+xorg-luit
+xorg-mkfontdir
+xorg-mkfontscale
+#xorg-res-utils
+xorg-server
+xorg-sessreg
+xorg-setxkbmap
+xorg-x11perf
+xorg-xauth
+xorg-xbacklight
+xorg-xcmsdb
+xorg-xcursorgen
+xorg-xdpyinfo
+xorg-xdriinfo
+xorg-xev
+#xorg-xgamma
+xorg-xhost
+xorg-xinput
+xorg-xkbcomp
+xorg-xkbevd
+xorg-xkbutils
+xorg-xkill
+xorg-xlsatoms
+xorg-xlsclients
+xorg-xmodmap
+xorg-xpr
+xorg-xprop
+xorg-xrandr
+xorg-xrdb
+xorg-xrefresh
+xorg-xset
+xorg-xsetroot
+xorg-xvinfo
+xorg-xwd
+xorg-xwininfo
+xorg-xwud
+xterm
+xkeyboard-config
+grub-common
+grub-bios
+LinHES-config
+LinHES-system
+mythtv
+mysql
+etcnet
+#alt_wm
+e16_theme_settings
+wmaker_settings
+mlocate
+
+mythinstall
+mytharchive
+mythbrowser
+mythgallery
+mythgame
+mythmusic
+mythnews
+mythweather
+linhes-theme
+
+ivtv-utils
+alsa-utils
+
+ceton_infinitv
diff --git a/build_tools/archiso/mythvantage/packages.x86_64.cache b/build_tools/archiso/mythvantage/packages.x86_64.cache
new file mode 100644
index 0000000..a989fdb
--- /dev/null
+++ b/build_tools/archiso/mythvantage/packages.x86_64.cache
@@ -0,0 +1,28 @@
+runit-scripts
+mythdb-initial
+mythnetvision
+tigervnc
+x11vnc
+nvidia
+nvidia-utils
+vdpauinfo
+lighttpd
+mythweb
+nfs-utils
+samba
+mplayer
+lcdproc
+mythappletrailers
+xscreensaver
+supplemental-web
+supplemental-web-slave
+#romdb
+#miro
+oss
+xf86-input-vmmouse
+xf86-video-vmware
+xf86-video-vesa
+xf86-video-intel
+libgl
+svga-dri
+nss-mdns
diff --git a/build_tools/archiso/mythvantage/pacman.conf b/build_tools/archiso/mythvantage/pacman.conf
new file mode 100644
index 0000000..7a9cfff
--- /dev/null
+++ b/build_tools/archiso/mythvantage/pacman.conf
@@ -0,0 +1,77 @@
+#
+# /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 = /data/storage/disk0/pacman/pkg
+#LogFile = /var/log/pacman.log
+#GPGDir = /etc/pacman.d/gnupg/
+HoldPkg = pacman glibc
+#XferCommand = /usr/bin/curl -C - -f %u > %o
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+#CleanMethod = KeepInstalled
+Architecture = auto
+
+# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
+#IgnorePkg =
+#IgnoreGroup =
+
+#NoUpgrade =
+#NoExtract =
+
+# Misc options
+#UseSyslog
+#UseDelta
+#TotalDownload
+# We cannot check disk space from within a chroot environment
+#CheckSpace
+VerbosePkgLists
+
+# By default, pacman accepts packages signed by keys that its local keyring
+# trusts (see pacman-key and its man page), as well as unsigned packages.
+SigLevel = Optional TrustedOnly
+
+# NOTE: You must run `pacman-key --init` before first using pacman; the local
+# keyring can then be populated with the keys of all official Arch Linux
+# packagers with `pacman-key --populate archlinux`.
+
+#
+# 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
+# - URLs will have $arch replaced by the name of the architecture
+#
+# 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.
+
+
+
+[core-testing]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
+
+[extra-testing]
+SigLevel = Optional TrustedOnly
+Server = http://localmirror.lan/repo/$arch/$repo/
diff --git a/build_tools/archiso/mythvantage/pristine.list b/build_tools/archiso/mythvantage/pristine.list
new file mode 100644
index 0000000..5223823
--- /dev/null
+++ b/build_tools/archiso/mythvantage/pristine.list
@@ -0,0 +1,4 @@
+./etc/hosts
+./etc/rc.local
+./boot
+./var/lib/pacman/
diff --git a/build_tools/archiso/mythvantage/profile_files/packages.x86_64 b/build_tools/archiso/mythvantage/profile_files/packages.x86_64
index daba72a..e5d5600 100644
--- a/build_tools/archiso/mythvantage/profile_files/packages.x86_64
+++ b/build_tools/archiso/mythvantage/profile_files/packages.x86_64
@@ -1,4 +1,4 @@
-sysvinit
+#sysvinit
initscripts
#b43-fwcutter
acpid
@@ -71,7 +71,7 @@ nmbscan
squashfs-tools
rsync
python-parted
-python-pexpect
+python2-pexpect
python-netifaces
python-iplib
xorg-apps