From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: community@altlinux.ru
Subject: [Comm] Как сделать Live CD
Date: Sun, 03 Apr 2005 20:15:52 +0400
Message-ID: <425016B8.2050402@stc.donpac.ru> (raw)
Здравствуйте!
Ознакомившись со всем, что было найдено на www.linux-os.ru на предмет
sandman, решил попробовать.
Начинаем c документа "Как выпекать LiveCD ISO в Sandman", который
требует наличия как минимум:
1. ALT Linux Sisyphus (локальный репозиторий);
2. Установленный и настроенный sandman, включая пользовательское
окружение (см. sandman-sisyphus-mini-howto);
Локальный репозитарий я сделал из 2 DVD-дисков ALM2.4 следующим образом:
1. Раскидал *.rpm и *.src.rpm по каталогам:
alt-linux-2.4
SRPMS
SRPMS.alm24 -> SRPMS
i586
RPMS
RPMS.alm24 -> RPMS
base
2. Выполнил:
genbasedir --progress --topdir=/home/public/distrib/alt-linux-2.4 i586 alm24
Затем пошел читать и выполнять рекомендации "Краткое руководство по
настройке sandman BTE (Build and Test Environment)", по мере своего
разумения адаптируя их:
1. Установил sandman и sandman-server
2. Отредактировал /etc/sandman/repos:
[global]
target = i586
distribution = ALT Linux
vendor = ALT Linux Team
cvsroot = /var/cvs
cvsmodule = release
[master24]
stable = /home/public/distrib/alt-linux-2.4 i586 alm24
basesystem = setup glibc-core filesystem basesystem
buildsystem = rpm-build
sources = /var/lib/sandman/sisyphus/sources
3. Отредактировал /etc/sudo.d/sandman:
%sandman athlon.ewsd.donpac.ru=NOPASSWD:/usr/bin/chrootuid
/var/cache/sandman/*
%sandman athlon.ewsd.donpac.ru=NOPASSWD:/bin/mount -text2 -o loop
/var/cache/sandman/*
%sandman athlon.ewsd.donpac.ru=NOPASSWD:/bin/mount --bind *
/var/cache/sandman/*/*
%sandman athlon.ewsd.donpac.ru=NOPASSWD:/bin/umount /var/cache/sandman/*
4. Инициализировал CVS:
cvsinitroot /var/cvs
chmod g+w /var/cvs
5. Завел пользователя test, включил его в группы cvs, cvsadmin, sandman,
перелогинился под его именем
6. Теперь проделал разные операции от имени пользователя test, отложив
вникание в суть на потом:
$ cvs -d :ext:localhost:/var/cvs co CVSROOT
$ cd CVSROOT
$ mkdir ../release && cd ../release
$ for i in release installer macros modules; do cp
/usr/share/doc/sandman-server-*/$i.sample $i; done
$ touch {release,installer,macros}.generic
$ cvs -d :ext:localhost:/var/cvs import -m 'init' release me start
$ cd ..
$ mv release release.orig
$ cvs -d :ext:localhost:/var/cvs co release
$ mkdir packages
$ cd packages
$ echo *.spec >> .cvsignore
$ cvs -d :ext:localhost:/var/cvs import -m 'init' packages me start
$ cd ..
$ mv packages packages.orig
$ cvs -d :ext:localhost:/var/cvs co packages
# mkdir -p /var/lib/sandman/alm24/stable/{SRPMS.alm24,i586/{RPMS.alm24}}
# chown -R sandman:sandman /var/lib/sandman/alm24/
$ cd CVSROOT
$ cat >> commitinfo << EOF
> release/* /usr/bin/sandctl -hook cvs:commit
> packages/* /usr/bin/sandctl -hook cvs:commit
> EOF
$ cvs commit -m 'init' commitinfo
7. Запустил сервис sandd, а ему не нравится репозитарий:
# service sandd start
Starting sandd service: wrong repository `stable'
Почему и что делать дальше?
--
С уважением, Прокопьев Евгений
next reply other threads:[~2005-04-03 16:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-03 16:15 Eugene Prokopiev [this message]
2005-04-03 18:07 ` Sergey Bolshakov
2005-04-04 4:07 ` Eugene Prokopiev
2005-04-04 6:08 ` Eugene Prokopiev
2005-04-04 6:11 ` Alexey I. Froloff
2005-04-04 16:30 ` Eugene Prokopiev
2005-04-04 17:17 ` Sergey Bolshakov
2005-04-04 18:19 ` Eugene Prokopiev
2005-04-04 18:24 ` Eugene Prokopiev
2005-04-04 19:22 ` Sergey Bolshakov
2005-04-04 20:20 ` [Comm] " Michael Shigorin
2005-04-04 21:16 ` Sergey Bolshakov
2005-04-05 12:25 ` Michael Shigorin
2005-04-05 17:23 ` Eugene Prokopiev
2005-04-05 17:46 ` Michael Shigorin
2005-04-05 18:17 ` Sergey Bolshakov
2005-04-04 16:32 ` [Comm] " Eugene Prokopiev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=425016B8.2050402@stc.donpac.ru \
--to=prokopiev@stc.donpac.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git