virtapi / LARS

Live Arch Rescue System
GNU Affero General Public License v3.0
8 stars 5 forks source link

Support custom package list #5

Open bastelfreak opened 9 years ago

bastelfreak commented 9 years ago

We should only provide a minimal list of packages that are needed to run a live linux. Users should be able to provide a second list via config.sh that gets merged but isn't tracked by git

killermoehre commented 8 years ago

What is the expected behavior if the list contains a wrong non-resolvable package name?

bastelfreak commented 8 years ago

this is hard to validate because people can also add custom repos. I'm not sure what happens if pacman can't find the package.

bastelfreak commented 8 years ago

I tested it with xxxxxxxxxxxxxxxxxxxxxxxxx as a package name:

[mkarchiso] INFO: Configuration settings
[mkarchiso] INFO:                   Command:   install
[mkarchiso] INFO:              Architecture:   i686
[mkarchiso] INFO:         Working directory:   work/i686
[mkarchiso] INFO:    Installation directory:   arch
[mkarchiso] INFO:        Pacman config file:   work/pacman.conf
[mkarchiso] INFO:                  Packages:   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 grub hdparm ipw2100-fw ipw2200-fw lftp linux-atm mc mtools nfs-utils nilfs-utils nmap ntfs-3g ntp openssh partclone parted partimage refind-efi rsync smartmontools sudo tcpdump testdisk usb_modeswitch vim-minimal wget pkgfile htop lsof strace ruby iperf3 bash-completion moreutils dfc mdadm ccze screen sysstat ipmitool intel-ucode python-requests xxxxxxxxxxxxxxxxxxxxxxxxx

[mkarchiso] INFO: Installing packages to 'work/i686/airootfs/'...
==> Creating install root at work/i686/airootfs
==> Installing packages to work/i686/airootfs
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
warning: mdadm-3.4-1 is up to date -- reinstalling
warning: intel-ucode-20151106-1 is up to date -- reinstalling
error: target not found: xxxxxxxxxxxxxxxxxxxxxxxxx
==> ERROR: Failed to install packages to new root