You are not logged in.

#1 2009-11-17 23:29:37

dronox
Member
Registered: 2009-11-17
Posts: 3

AIF - Custom (local) Repos

Hey,

I have the following issue:For my studies, I try to make an installation CD for arch including custom packages from a local repo. Therefore I copied the repo files onto the overlay (overlay/home/repo_carolo) and edited the pacman.conf in overlay. If I type in the command pacman -Sy, all repos do work - including the custom repo (named carolo). But if I try to access to carolo from aif automatic script, it does not find the repository.

Here's my config file for automatic installation

<code>
# this config explains the (all) available options.
# the variables are optional and we define their defaults here (so you could omit the
# definitions), unless otherwise specified.

SOURCE=cd
FILE_URL=file:///src/core/pkg
SYNC_URL=
HARDWARECLOCK=localtime
TIMEZONE=Europe/Berlin
HOSTNAME="caroloDHBW"
LOCALE="de_DE.utf8"
KEYMAP="de"
LANG="de"
eth0="dhcp"
DAEMONS="@acpid syslog-ng network rpcbind dbus hal @netfs @crond @alsa bluetooth PS3Init CaroloSoftware"

TARGET_REPOS="carolo core extra community"
TARGET_GROUPS="base"
TARGET_PACKAGES="openssh netcfg hal acpi acpid rpcbind alsa-lib alsa-utils alsa-oss gcc sdl sdl_mixer libmikmod libmad audiofile boost carolo/libtremor-svn carolo/libftd2xx carolo/bluez-utils-sixaxis carolo/bluez-libs"

# you can optionally also override some functions...
worker_intro () {
infofy "Herzlich Willkommen beim automatischen Installationsprozess zur Archlinux Installation für das Carolo DHBW-System.\r\nACHTUNG: IM FOLGENDEN WIRD DIE GESAMTE FESTPLATTE (/DEV/SDA) FORMATIERT! SOLLTEN SIE DIES NICHT WÜNSCHEN, SO BRECHEN SIE NUN MIT STRG+C AB! ANDERNFALLS DRÜCKEN SIE BITTE DIE ENTER-TASTE, UM DAS SETUP ZU STARTEN!"
read -s
}

worker_configure_system () {
prefill_configs
sed -i 's/^HOSTNAME="myhost"/HOSTNAME="caroloDHBW"/' $var_TARGET_DIR/etc/rc.conf
sed -i 's/^LOCALE="en_US/LOCALE="de_DE/' $var_TARGET_DIR/etc/rc.conf
sed -i 's/^KEYMAP="en"/KEYMAP="de"/' $var_TARGET_DIR/etc/rc.conf
}


# These variables are mandatory

GRUB_DEVICE=/dev/sda
PARTITIONS='/dev/sda 100:ext2:+ 2048:swap *:ext4'
BLOCKDATA='/dev/sda1 raw no_label ext2;yes;/boot;target;no_opts;no_label;no_params
/dev/sda2 raw no_label swap;yes;no_mountpoint;target;no_opts;no_label;no_params
/dev/sda3 raw no_label ext4;yes;/;target;no_opts;no_label;no_params'
</code>

The installation crashes with the following message:
<quote>
error: 'carolo/libtremor-svn': no such repository
error: repository 'carolo' not found
</quote>

Maybe someone did solve the problem before.

Thanks!

Regards Dustin

Offline

#2 2009-11-20 21:07:23

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: AIF - Custom (local) Repos

EDIT: crap. sorry I misread
check if the iso has a carolo directory/file in /src/core/pkg (just like there should be one for core etc)

initial solution to what I just found out was not really your question below:

dronox wrote:

<code>
SOURCE=cd
FILE_URL=file:///src/core/pkg
(...)
TARGET_REPOS="carolo core extra community"
</code>

you're mixing up repos with mirrors (or maybe I just didn't pick the names of the variables careful enough).
what you have configured here, is to use /src/core/pkg as mirror (just like you have archlinux.org mirror and many more), and to enable the core, extra, community and carolo repositories on it.
but obviously, there is no 'carolo' repository on the official install image (just like there is no carolo repository on any of the official archlinux mirrors).
what you probably want to do, is something like:

SOURCE=net
SYNC_URL=http://192.168.1.1 # your own personal mirror here
TARGET_REPOS="carolo core extra community"

this way it will use *your* mirror which has all the listed repositories.

good luck!

Last edited by Dieter@be (2009-11-20 21:09:01)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB