LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Make live usb with Yast image creator (http://www.linuxquestions.org/questions/linux-software-2/make-live-usb-with-yast-image-creator-843212/)

kzcom 11-09-2010 07:40 AM

Make live usb with Yast image creator
 
I want to create an usb stick with Yast Image Creator.i have a local iso image(openSUSE-11.2-KDE4-LiveCD-i686.iso) in /home/myimage directory.

but failed with these log:
Nov-09 08:16:03 <1> : Reading image description [Prepare]...
Nov-09 08:16:03 <1> : EXEC [uname -m]
Nov-09 08:16:03 <1> : EXEC [xsltproc -o /usr/share/kiwi/image/usbboot/suse-11.2/config.xml-next /usr/share/kiwi/xsl/master.xsl /usr/share/kiwi/image/usbboot/suse-11.2/config.xml 2>&1]
Nov-09 08:16:03 <1> : EXEC [mv /usr/share/kiwi/image/usbboot/suse-11.2/config.xml-next /usr/share/kiwi/image/usbboot/suse-11.2/config.xml]
Nov-09 08:16:03 <1> : EXEC [cd /usr/share/kiwi/image/usbboot/suse-11.2 && md5sum -c .checksum.md5 2>&1]
Nov-09 08:16:03 <1> : EXEC [pwd]
Nov-09 08:16:03 <1> : EXEC [pwd]
Nov-09 08:16:04 <1> : Using profile(s): default,std done
Nov-09 08:16:04 <1> : Checking for default baseroot in XML data... notset
Nov-09 08:16:04 <1> : EXEC [pwd]
Nov-09 08:16:04 <1> : EXEC [pwd]
Nov-09 08:16:04 <1> : EXEC [touch /tmp/mytmp/.broken 2>&1]
Nov-09 08:16:04 <1> : Set root log: /tmp/mytmp.29267.screenrc.log... done
Nov-09 08:16:04 <1> : Setting up package manager: zypper done
Nov-09 08:16:04 <1> : EXEC [rm -f /var/cache/kiwi/zypp.conf*]
Nov-09 08:16:04 <1> : EXEC [echo '[main]' > /var/cache/kiwi/zypp.conf.29267]
Nov-09 08:16:05 <1> : Set package manager lock
Nov-09 08:16:05 <1> : EXEC [touch /var/lock/kiwi-init.lock]
Nov-09 08:16:05 <1> : Creating default template files for new root system
Nov-09 08:16:05 <1> : EXEC [mkdir -p /tmp/mytmp/dev]
Nov-09 08:16:05 <1> : EXEC [mkdir -m 755 -p /tmp/mytmp/dev/pts]
Nov-09 08:16:05 <1> : EXEC [mknod -m 666 /tmp/mytmp/dev/null c 1 3]
Nov-09 08:16:05 <1> : EXEC [mknod -m 666 /tmp/mytmp/dev/zero c 1 5]
Nov-09 08:16:05 <1> : EXEC [mknod -m 622 /tmp/mytmp/dev/full c 1 7]
Nov-09 08:16:05 <1> : EXEC [mknod -m 666 /tmp/mytmp/dev/random c 1 8]
Nov-09 08:16:05 <1> : EXEC [mknod -m 644 /tmp/mytmp/dev/urandom c 1 9]
Nov-09 08:16:05 <1> : EXEC [mknod -m 666 /tmp/mytmp/dev/tty c 5 0]
Nov-09 08:16:05 <1> : EXEC [mknod -m 666 /tmp/mytmp/dev/ptmx c 5 2]
Nov-09 08:16:05 <1> : EXEC [ln -s /proc/self/fd /tmp/mytmp/dev/fd]
Nov-09 08:16:06 <1> : EXEC [ln -s fd/2 /tmp/mytmp/dev/stderr]
Nov-09 08:16:06 <1> : EXEC [ln -s fd/0 /tmp/mytmp/dev/stdin]
Nov-09 08:16:06 <1> : EXEC [ln -s fd/1 /tmp/mytmp/dev/stdout]
Nov-09 08:16:06 <1> : EXEC [mknod -m 640 /tmp/mytmp/dev/loop0 b 7 0]
Nov-09 08:16:06 <1> : EXEC [mknod -m 640 /tmp/mytmp/dev/loop1 b 7 1]
Nov-09 08:16:06 <1> : EXEC [mknod -m 640 /tmp/mytmp/dev/loop2 b 7 2]
Nov-09 08:16:06 <1> : EXEC [mknod -m 640 /tmp/mytmp/dev/loop3 b 7 3]
Nov-09 08:16:06 <1> : EXEC [mkdir -p /tmp/mytmp/etc/sysconfig]
Nov-09 08:16:06 <1> : EXEC [mkdir -p /tmp/mytmp/var/log/YaST2]
Nov-09 08:16:06 <1> : EXEC [mkdir -p /tmp/mytmp/var/lib/dpkg]
Nov-09 08:16:06 <1> : EXEC [touch /tmp/mytmp/var/lib/dpkg/status]
Nov-09 08:16:06 <1> : EXEC [mkdir -p /tmp/mytmp/var/lib/dpkg/updates]
Nov-09 08:16:06 <1> : EXEC [touch /tmp/mytmp/var/lib/dpkg/available]
Nov-09 08:16:07 <1> : EXEC [touch /tmp/mytmp/.buildenv]
Nov-09 08:16:07 <1> : EXEC [touch /tmp/mytmp/etc/mtab]
Nov-09 08:16:07 <1> : EXEC [touch /tmp/mytmp/etc/sysconfig/bootloader]
Nov-09 08:16:07 <1> : EXEC [cp /var/adm/fillup-templates/group.aaa_base /tmp/mytmp/etc/group 2>&1]
Nov-09 08:16:07 <1> : EXEC [cp /var/adm/fillup-templates/passwd.aaa_base /tmp/mytmp/etc/passwd 2>&1]
Nov-09 08:16:07 <1> : EXEC [cp /etc/resolv.conf /tmp/mytmp/etc 2>&1]
Nov-09 08:16:07 <1> : EXEC [cp /usr/share/kiwi/modules/KIWIConfig.sh /tmp/mytmp/.kconfig 2>&1]
done
Nov-09 08:16:07 <1> : Importing build keys...
Nov-09 08:16:07 <1> : EXEC [mkdir -p /tmp/mytmp/rpm-sigs && cd /tmp/mytmp/rpm-sigs && /usr/lib/rpm/gnupg/dumpsigs 2>&1]
Nov-09 08:16:08 <1> : EXEC [rpm -r /tmp/mytmp --import /tmp/mytmp/rpm-sigs/gpg-pubke* 2>&1]
done
Nov-09 08:16:08 <1> : EXEC [rm -rf /tmp/mytmp/rpm-sigs]
Nov-09 08:16:08 <1> : EXEC [mkdir -p /tmp/mytmp//var/cache/zypp 2>&1]
Nov-09 08:16:08 <1> : EXEC [mount --bind /var/cache/zypp /tmp/mytmp//var/cache/zypp 2>&1]
Nov-09 08:16:08 <1> : EXEC [mkdir -p /tmp/mytmp//var/cache/kiwi 2>&1]
Nov-09 08:16:08 <1> : EXEC [mount --bind /var/cache/kiwi /tmp/mytmp//var/cache/kiwi 2>&1]
Nov-09 08:16:08 <1> : EXEC [rm -f /var/cache/kiwi/zypper/*.repo]
Nov-09 08:16:09 <1> : Adding bootstrap zypper service: home_myimage
Nov-09 08:16:09 <1> : EXEC [/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 --root "/tmp/mytmp" addrepo --type YaST 'file:///home/myimage' home_myimage 2>&1]
done
Nov-09 08:16:10 <1> : Initializing image system on: /tmp/mytmp...
Nov-09 08:16:10 <1> : EXEC [chmod 755 /tmp/mytmp/screenrc.smart]
+ 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/mytmp//var/cache/kiwi/zypp.conf.29267
+ ZYPP_CONF=/tmp/mytmp//var/cache/kiwi/zypp.conf.29267
+ /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 --root /tmp/mytmp refresh
+ SPID=29460
+ wait 29460
Retrieving repository 'home_myimage' metadata [\]File '/media.1/media' not found on medium 'file:/home/myimage'

Abort, retry, ignore? [a/r/i/?] (a): a
Retrieving repository 'home_myimage' metadata [error]
Repository 'home_myimage' is invalid.
Can't provide /media.1/media : Media Exception
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'home_myimage' because of the above error.
Could not refresh the repositories because of errors.
+ test 4 = 0
+ SPID=29468
+ wait 29468
+ ECODE=1
+ echo 1
+ exit 1
Nov-09 08:16:11 <1> : EXEC [rm -f /tmp/mytmp/screenrc.smart*]
Nov-09 08:16:11 <1> : EXEC [rm -f /tmp/mytmp/screenrc.ctrls]
failed
Nov-09 08:16:11 <1> : Removing zypper service(s): home_myimage
Nov-09 08:16:11 <1> : EXEC [bash -c "/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 --root /tmp/mytmp removerepo home_myimage 2>&1"]
done
Nov-09 08:16:12 <1> : Removing zypper service(s): home_myimage
Nov-09 08:16:12 <1> : EXEC [bash -c "/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 --root /tmp/mytmp removerepo home_myimage 2>&1"]
done
Nov-09 08:16:12 <1> : Umounting path: /tmp/mytmp//var/cache/kiwi
Nov-09 08:16:12 <1> : EXEC [umount "/tmp/mytmp//var/cache/kiwi" 2>&1]
Nov-09 08:16:12 <1> : Umounting path: /tmp/mytmp//var/cache/zypp
Nov-09 08:16:12 <1> : EXEC [umount "/tmp/mytmp//var/cache/zypp" 2>&1]
Nov-09 08:16:12 <1> : Release package manager lock
Nov-09 08:16:12 <1> : EXEC [rm -f /var/lock/kiwi-init.lock]
Nov-09 08:16:13 <3> : Base initialization failed failed
Nov-09 08:16:13 <1> : EXEC [cp /tmp/mytmp.29267.screenrc.log /tmp/mytmp/.broken 2>&1]
Nov-09 08:16:13 <3> : KIWI exited with error(s) done
Nov-09 08:16:13 <1> : Complete logfile at: /tmp/mytmp.log
Nov-09 08:16:13 <1> : EXEC [mv /tmp/mytmp.29267.screenrc.log /tmp/mytmp.log 2>&1]
done

udaman 11-09-2010 01:43 PM

Here's a howto on creating a live USB stick from Suse.

http://en.opensuse.org/Live_USB_stick


All times are GMT -5. The time now is 10:18 AM.