Author Topic: liveusb-creator  (Read 1481 times)

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
liveusb-creator
« on: April 17, 2010, 01:18:48 PM »
kdeinit4: preparing to launch /usr/lib/libkdeinit4_klauncher.so
klauncher(4017) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!


JohnBoy:  I think you have played with this before..... Did you ever find a solution to the DBUS error?


Could one of our esteemed graphics gurus pclosify this image please?
Edit:
Looks like we got us a graphic.
« Last Edit: April 17, 2010, 02:33:58 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Texstar

  • Administrator
  • Super Villain
  • *****
  • Posts: 12539
Re: liveusb-creator
« Reply #1 on: April 17, 2010, 01:31:13 PM »
I'm not JB but dbus-launch name-of-application

Thanks to everyone who donates. You keep the servers running.

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: liveusb-creator
« Reply #2 on: April 17, 2010, 01:40:53 PM »
[joe@localhost ~]$ dbus-launch liveusb-creator
(5175) KSycocaPrivate::checkDatabase: We have no database.... launching kdeinit
(5175) KToolInvocation::klauncher: klauncher not running... launching kdeinit
kdeinit4: preparing to launch /usr/lib/libkdeinit4_klauncher.so
klauncher(5181) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!

liveusb-creator asks for root password but fails.......

running dbus-launch liveusb-creator as root, seems to be working.  Will now attempt to make a persistent live-usb.  Thanks Tex!
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: liveusb-creator
« Reply #3 on: April 17, 2010, 01:55:41 PM »
Verifying filesystem...
Setting /dev/sdc1 label to FEDORA
Verifying ISO MD5 checksum
ISO MD5 checksum passed
Extracting live image to USB device...
Unable to find LiveOS on ISO
LiveUSB creation failed!

Unable to find LiveOS on ISO

Hmm.  Would we have to do the iso differently?  Crud, so close..... more research required.

OOOH!  A Clue!
Warning: The Master Boot Record on your device does not match your system's syslinux MBR.  If you have trouble booting this stick, try running the liveusb-creator with the --reset-mbr option.

Crud, no workie yet.
pclinuxos-phoenix-xfce-2010.iso selected
Resetting Master Boot Record of /dev/sdc
Verifying filesystem...
Setting /dev/sdc1 label to FEDORA
Verifying ISO MD5 checksum
ISO MD5 checksum passed
Extracting live image to USB device...
Unable to find LiveOS on ISO
LiveUSB creation failed!
Unable to find LiveOS on ISO
« Last Edit: April 17, 2010, 02:01:00 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Online luikki

  • Hero Member
  • *****
  • Posts: 1408
Re: liveusb-creator
« Reply #4 on: April 17, 2010, 03:13:10 PM »
i've the feeling that you are almost there and very soon we all will be enjoying your liveusb-creator ...
thanks for your work!

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: liveusb-creator
« Reply #5 on: April 17, 2010, 03:35:36 PM »
Joble, I see Tex got in on the D-bus question ......  just as well as I did not remember  :-[

I looked at this utility some time ago, and (IIRC) it was my impression then, that there would have to be some changes made to the app to accomodate the structure of a PCLOS ISO. I may have been misunderstanding it at the time but think it would be worth checking out.
Of course if this has been ported to Mandy that would help a lot   ;D

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: liveusb-creator
« Reply #6 on: April 17, 2010, 03:48:28 PM »
Where do you think I got the rpm from?   ;D ;)
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: liveusb-creator
« Reply #7 on: April 17, 2010, 04:00:17 PM »
Where do you think I got the rpm from?   ;D ;)

Oh foolish me ......  I thought you were working from source   ;D ;D ;D

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: liveusb-creator
« Reply #8 on: April 17, 2010, 04:14:37 PM »
I think slick50 may be on to something:
isomd5sum
Utilities for working with md5sum implanted in ISO images
The isomd5sum package contains utilities for implanting and verifying
an md5sum implanted into an ISO9660 image.

I don't think I ever embedded my md5sum into my iso images, since I created them and I knew where they came from.  Wonder if the md5sum is embedded in our iso's?

From slick50:
Quote
That's ok I built it myself... Now a lot of work I see as it has to be competely
reworked (liveusb) halfway there.

I usually take pride in beating him to a package request.  In this case, obviously, I can use all the help I can get.   :P ;) ;D

I can only imagine what this patch is gonna look like.   ::)
« Last Edit: April 17, 2010, 04:20:53 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: liveusb-creator
« Reply #9 on: April 17, 2010, 04:27:13 PM »
Quote
I don't think I ever embedded my md5sum into my iso images, since I created them and I knew where they came from.  Wonder if the md5sum is embedded in our iso's?

Your output above reported

Quote
ISO MD5 checksum passed
Extracting live image to USB device...
Unable to find LiveOS on ISO
LiveUSB creation failed!

Implies to me that the md5sum is OK.

It finds the ISO image but fails to find whatever it is looking for within the ISO ......  is it looking for a differently named file than the PCLOS livecd.sqfs file or whatever it is looking for?

So what does it search for within the ISO after confirming the MD5sum is correct?

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: liveusb-creator
« Reply #10 on: April 17, 2010, 04:31:35 PM »
Hmm..... Interesting observation. 
* Joble runs off to check.

I think slick50 is all over that based on his last PM.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: liveusb-creator
« Reply #11 on: April 17, 2010, 04:44:06 PM »
Code: [Select]
def extract_iso(self):
        """ Extract self.iso to self.dest """
        self.log.info(_("Extracting live image to USB device..."))
        tmpdir = tempfile.mkdtemp()
        self.popen('mount -o loop,ro "%s" %s' % (self.iso, tmpdir))
        tmpliveos = os.path.join(tmpdir, 'LiveOS')
        try:
            if not os.path.isdir(tmpliveos):
                raise LiveUSBError(_("Unable to find LiveOS on ISO"))
            liveos = os.path.join(self.dest, 'LiveOS')
            if not os.path.exists(liveos):
                os.mkdir(liveos)
            for img in ('squashfs.img', 'osmin.img'):
                start = datetime.now()
                self.popen("cp %s '%s'" % (os.path.join(tmpliveos, img),
                                           os.path.join(liveos, img)))
                delta = datetime.now() - start

Maybe adding livecd.sqfs would help?
for img in ('squashfs.img', 'osmin.img', 'livecd.sqfs'):
« Last Edit: April 17, 2010, 04:47:10 PM by JohnBoy »

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: liveusb-creator
« Reply #12 on: April 17, 2010, 04:49:33 PM »
Sheesh.... You should be a packager dude!  ;)
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System