Не могу создать Live CD с помощью Product creator.
Open SuSE 12.1
Выбираю репозитарии
пишет
The selected base repository doesn’t contain /boot directory.
The created medium will not be bootable.
нажимаю Continue
Ставлю галочку на разделы программ
http://i073.radikal.ru/1112/35/1f704b3da4f9.png
Завершаю
Package Source
• Index of /update/12.1
• Index of /source/distribution/12.1/repo/oss
• Index of /distribution/12.1/repo/oss
• Index of /distribution/12.1/repo/non-oss
• Index of /suse/openSUSE_12.1/
• Index of /repositories/openSUSE:/Factory:/Contrib/openSUSE_12.1
• Index of /repositories/openSUSE:/Tools/openSUSE_12.1
• Index of /update/12.1
Packages
Selected 636 packages
Architecture
Target architecture: i586
Output Directory
Creating ISO image /home/user/b/e.iso
Signing
The medium will not be digitally signed
Создаю Live iso image
These packages from section 'Bootstrap' are not available with selected repositories:
openSUSE-release-livecd-x11.
You can remove the packages from the section, check the detailed package selection or ignore the situation.
Going to detailed package selection and accepting the view without any further changes results in removal of problematic packages from the section.
Жму remove the packages
http://s017.radikal.ru/i415/1112/84/808015c53ce6.png
Стандартный scripts
#!/bin/bash
#================
# FILE : config.sh
#----------------
# PROJECT : OpenSuSE KIWI Image System
# COPYRIGHT : (c) 2006,2007,2008 SUSE LINUX Products GmbH. All rights reserved
# :
# AUTHOR : Marcus Schaefer <ms@suse.de>, Stephan Kulow <coolo@suse.de>
# :
# LICENSE : BSD
#======================================
# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile
set -e
set -x
exec | tee /var/log/config.log
exec 2>&1
pl=`rpmqpack | grep package-lists-` || true
test -z "$pl" || rpm -e $pl
#======================================
# Greeting...
#--------------------------------------
echo "Configure image: $name]..."
if test -n "$use_special_hacks"; then
#======================================
# Load sound drivers by default
#--------------------------------------
perl -ni -e 'm,^blacklist snd-, || print;' \
/etc/modprobe.d/50-blacklist.conf
# and unmute their mixers.
perl -pi -e 's,/sbin/alsactl -F restore,/bin/set_default_volume -f,;' \
/etc/udev/rules.d/40-alsa.rules
fi
#--------------------------------------
# these two we want to disable for policy reasons
chkconfig sshd off
chkconfig cron off
# disable for now chkconfig boot.compcache on
chkconfig boot.ldconfig off
ln -s '/etc/systemd/system/clicfs.service' '/etc/systemd/system/multi-user.target.wants/clicfs.service'
ln -s '/lib/systemd/system/langset.service' '/lib/systemd/system/sysinit.target.wants/langset.service'
cd /
patch -p0 < /etc/YaST2/liveinstall.patch
if test -f /etc/YaST2/firstboot.xml -a -f /var/lib/livecd/config-firstboot.patch; then
patch -f /etc/YaST2/firstboot.xml /var/lib/livecd/config-firstboot.patch
fi
# disabled for now - if you reenable, don't forget correct_live_install
# bnc#382158
# patch -p0 < /etc/YaST2/policy.patch
for i in /rpmkeys/gpg*.asc; do
# the import fails if kiwi already had this key
rpm --import $i || true
rm $i
done
rmdir /rpmkeys
insserv
rm -rf /var/cache/zypp/raw/*
bash -x /var/lib/livecd/geturls.sh
rm /var/lib/livecd/geturls.sh
#======================================
# /etc/sudoers hack to fix #297695
# (Installation Live CD: no need to ask for password of root)
#--------------------------------------
sed -i -e "s/ALL ALL=(ALL) ALL/ALL ALL=(ALL) NOPASSWD: ALL/" /etc/sudoers
chmod 0440 /etc/sudoers
/usr/sbin/useradd -m -u 999 linux -c "Live-CD User" -p ""
# delete passwords
passwd -d root
passwd -d linux
# empty password is ok
pam-config -a --nullok
: > /var/log/zypper.log
mv /var/lib/livecd/*.pdf /home/linux || true
rmdir /var/lib/livecd || true
chown -R linux /home/linux
#======================================
# SuSEconfig
#--------------------------------------
suseConfig
SuSEconfig --module permissions
for script in /usr/share/opensuse-kiwi/live_user_scripts/*.sh; do
if test -f $script; then
su - linux -c "/bin/bash $script"
fi
done
rm -rf /var/cache/zypp/packages
# bug 544314, we only want to disable the bit in common-auth-pc
sed -i -e 's,^\(.*pam_gnome_keyring.so.*\),#\1,' /etc/pam.d/common-auth-pc
#USB /usr/bin/correct_live_for_reboot usb
#USB /usr/bin/correct_live_install usb
echo '127.0.0.2 linux.site linux' >> /etc/hosts
baseSetRunlevel 5
baseUpdateSysConfig /etc/sysconfig/displaymanager DISPLAYMANAGER_AUTOLOGIN linux
baseUpdateSysConfig /etc/sysconfig/keyboard KEYTABLE us.map.gz
baseUpdateSysConfig /etc/sysconfig/keyboard YAST_KEYBOARD english-us,pc104
baseUpdateSysConfig /etc/sysconfig/clock HWCLOCK "-u"
baseUpdateSysConfig /etc/sysconfig/network/config NETWORKMANAGER no
При создании образа ошибка
http://s54.radikal.ru/i146/1112/a1/6f86a80cc513.png
Dec-21 04:08:47 <1> : EXEC [rm -f /var/cache/kiwi/zypper/zypper.conf.5556 /var/cache/kiwi/zypper/zypp.conf.5556]
Вот логи
+ export PBL_SKIP_BOOT_TEST=1
+ PBL_SKIP_BOOT_TEST=1
+ trap clean INT TERM
+ export ZYPP_MODALIAS_SYSFS=/tmp
+ ZYPP_MODALIAS_SYSFS=/tmp
+ export YAST_IS_RUNNING=true
+ YAST_IS_RUNNING=true
+ export ZYPP_CONF=/tmp/YaST2-04249-Edg0E5/myphysical//var/cache/kiwi/zypper/zypp.conf.5556
+ ZYPP_CONF=/tmp/YaST2-04249-Edg0E5/myphysical//var/cache/kiwi/zypper/zypp.conf.5556
+ export ZYPP_ARIA2C=0
+ ZYPP_ARIA2C=0
+ SPID=5937
+ wait 5937
+ /usr/bin/zypper --non-interactive --no-gpg-checks --reposd-dir /var/cache/kiwi/zypper --cache-dir /var/cache/kiwi/zypper --raw-cache-dir /var/cache/kiwi/zypper --config /var/cache/kiwi/zypper/zypper.conf.5556 --root /tmp/YaST2-04249-Edg0E5/myphysical install --auto-agree-with-licenses --no-recommends bundle-lang-common-en filesystem openSUSE-release zypper
+ ECODE=0
+ echo 0
+ exit 0
+ export PBL_SKIP_BOOT_TEST=1
+ PBL_SKIP_BOOT_TEST=1
+ trap clean INT TERM
+ export ZYPP_MODALIAS_SYSFS=/tmp
+ ZYPP_MODALIAS_SYSFS=/tmp
+ export YAST_IS_RUNNING=true
+ YAST_IS_RUNNING=true
+ export ZYPP_CONF=/var/cache/kiwi/zypper/zypp.conf.5556
+ ZYPP_CONF=/var/cache/kiwi/zypper/zypp.conf.5556
+ export ZYPP_ARIA2C=0
+ ZYPP_ARIA2C=0
+ SPID=6736
+ wait 6736
+ chroot /tmp/YaST2-04249-Edg0E5/myphysical zypper --non-interactive --no-gpg-checks --reposd-dir /var/cache/kiwi/zypper --cache-dir /var/cache/kiwi/zypper --raw-cache-dir /var/cache/kiwi/zypper --config /var/cache/kiwi/zypper/zypper.conf.5556 install --auto-agree-with-licenses --no-recommends -t pattern base enhanced_base
+ ECODE=0
+ echo 0
+ exit 0
...
Dec-21 04:08:47 <1> : Umounting path: /tmp/YaST2-04249-Edg0E5/myphysical//var/cache/kiwi
Dec-21 04:08:47 <1> : EXEC [umount "/tmp/YaST2-04249-Edg0E5/myphysical//var/cache/kiwi" 2>&1]
Dec-21 04:08:47 <1> : Umounting path: /tmp/YaST2-04249-Edg0E5/myphysical//var/cache/zypp
Dec-21 04:08:47 <1> : EXEC [umount "/tmp/YaST2-04249-Edg0E5/myphysical//var/cache/zypp" 2>&1]
Dec-21 04:08:47 <1> : Umounting path: /tmp/YaST2-04249-Edg0E5/myphysical/dev
Dec-21 04:08:47 <1> : EXEC [umount "/tmp/YaST2-04249-Edg0E5/myphysical/dev" 2>&1]
Dec-21 04:08:47 <1> : Umounting path: /tmp/YaST2-04249-Edg0E5/myphysical/dev/pts
Dec-21 04:08:47 <1> : EXEC [umount "/tmp/YaST2-04249-Edg0E5/myphysical/dev/pts" 2>&1]
Dec-21 04:08:47 <1> : Umounting path: /tmp/YaST2-04249-Edg0E5/myphysical/sys
Dec-21 04:08:47 <1> : EXEC [umount "/tmp/YaST2-04249-Edg0E5/myphysical/sys" 2>&1]
Dec-21 04:08:47 <1> : Umounting path: /tmp/YaST2-04249-Edg0E5/myphysical/var/run/dbus
Dec-21 04:08:47 <1> : EXEC [umount "/tmp/YaST2-04249-Edg0E5/myphysical/var/run/dbus" 2>&1]
Dec-21 04:08:47 <1> : Umounting path: /tmp/YaST2-04249-Edg0E5/myphysical/dev
Dec-21 04:08:47 <1> : EXEC [umount "/tmp/YaST2-04249-Edg0E5/myphysical/dev" 2>&1]
Dec-21 04:08:47 <1> : Umounting path: /tmp/YaST2-04249-Edg0E5/myphysical/proc
Dec-21 04:08:47 <1> : EXEC [umount "/tmp/YaST2-04249-Edg0E5/myphysical/proc" 2>&1]
Dec-21 04:08:47 <1> : EXEC [rm -f /var/cache/kiwi/zypper/zypper.conf.5556 /var/cache/kiwi/zypper/zypp.conf.5556]
Переписал на :
#!/bin/bash
#================
# FILE : config.sh
#----------------
# PROJECT : OpenSuSE KIWI Image System
# COPYRIGHT : (c) 2006 SUSE LINUX Products GmbH. All rights reserved
# :
# AUTHOR : Marcus Schaefer <ms@suse.de>
# :
# BELONGS TO : Operating System images
# :
# DESCRIPTION : configuration script for SUSE based
# : operating systems
# :
# :
# STATUS : BETA
#----------------
#======================================
# Functions...
#--------------------------------------
test -f /.kconfig && . /.kconfig
test -f /.profile && . /.profile
#======================================
# Greeting...
#--------------------------------------
echo "Configure image: $kiwi_iname]..."
#======================================
# SuSEconfig
#--------------------------------------
suseConfig
#======================================
# Keep UTF-8 locale
#--------------------------------------
baseStripLocales \
$(for i in $(echo $kiwi_language | tr "," " ");do echo -n "$i.utf8 ";done)
baseStripTranslations kiwi.mo
#======================================
# Umount kernel filesystems
#--------------------------------------
baseCleanMount
exit 0
Теперь образ создаётся но зависает при загрузке
http://s45.radikal.ru/i108/1112/70/8dbaa18bf7e8.png