PCLinuxOS-Forums
News: Wishing everyone a Happy 2012
 
*
Welcome, Guest. Please login or register. February 12, 2012, 01:34:50 PM


Login with username, password and session length


Pages: 1 2 [3] 4   Go Down
  Print  
Author Topic: The 'remastered' mkremaster script: more options, and some error checking too!  (Read 19508 times)
travisN000
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1709


« Reply #30 on: July 18, 2009, 11:03:44 PM »

the script already auto detects and selects /union as root if it exists.
 Grin
Logged
mbmalone
Full Member
***
Offline Offline

Posts: 194


« Reply #31 on: August 05, 2009, 06:49:10 PM »

I've got to try this script, this crap is killing me !!!

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
Unknown option: root-/union


Creating initrd:                                   [105.42% 00:00:14/00:00:14]
   -d //tmp  || mkdir //tmp ;  18565/livmv -f /medi[100.00% 00:00:23/00:00:23]iv                                                             Setting filesystem parameters:                     [100.00% 00:01:52/00:03:09]
Creating compressed image:                         [ 56.20% 00:58:45/01:46:18]Unmatched ( in regex; marked by <-- HERE in m/^mksquashfs: file //usr/share/xbmc/visualisations/projectM/Bmelgren & Krash - Rainbow Orb Peacock ( <-- HERE Centred Journey Mix.milk, uncompressed size 1941 bytes
$/ at /usr/sbin/mklivecd line 297, <CMP> line 145224.
[root@localhost ~]#
Logged
mbmalone
Full Member
***
Offline Offline

Posts: 194


« Reply #32 on: August 05, 2009, 07:23:01 PM »

I have installed mkremaster2 and made it executeable.
I'm about to run a test on a big remaster that failed a few minutes using my own options.

I hope mkremaster2.3.1.txt is the latest and greatest version ...
I am fully updated and like living on the cutting edge. Testing under kernel 2.6.27.29.tex1

NOTICE:  This has been backed down to an older version in the official repos.

NOTICE:  I've posted a new version for testing (attached at bottom of post); it should make it a little harder to make a bad remaster..  and it gives you even more options!.

Logged
travisN000
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1709


« Reply #33 on: August 05, 2009, 09:04:18 PM »

I haven't worked on it since then, so it is the latest and (hopefully) the greatest!

I would recommend starting it from console as there is a pretty long pause when it does the disk space checks; the only feedback during that period is from the terminal.
Logged
mbmalone
Full Member
***
Offline Offline

Posts: 194


« Reply #34 on: August 05, 2009, 10:58:45 PM »

I used it, it worked. I'm about to remaster again.
The first time, I crashed it. I wasn't sure about a couple of things, then moved the location of the final ISO and it bombed. I just used the default the 2nd time and everything was fine. I accidentally selected to use the profile of an existing user for future users and then tried to cancel out. When I started the script over, I didn't know how to make sure that wasn't in there. I didn't know if those configuration files were deleted or not. I'm just saying, because you were asking for feedback. The script is good. My remaster is almost 2gig. I will go through the advanced options more carefully, this time.

I haven't worked on it since then, so it is the latest and (hopefully) the greatest!

I would recommend starting it from console as there is a pretty long pause when it does the disk space checks; the only feedback during that period is from the terminal.
Logged
mbmalone
Full Member
***
Offline Offline

Posts: 194


« Reply #35 on: August 06, 2009, 01:18:36 AM »

I've run into a lot of problems for some reason. I can no longer make any remaster  Huh
One of the problems has been some error with Wallpaper in Konqueror, as if I even care about that?

I will attempt again, cleaning all temp directories completely.
Logged
mbmalone
Full Member
***
Offline Offline

Posts: 194


« Reply #36 on: August 06, 2009, 09:57:51 PM »

I hate to be the bearer of bad news, but this script is just not working for me, sadly.
I have run it maybe 25 times or so, but always gives a big error at the end and I have no idea why?

If I just use default, it works. If I select anything, bombs. I thought it was copying the profile that was the problem, but when I don't still bombs.
In 25 tries, I think I have selected every option. I keep getting some error about the wallpaper. I cannot believe if that is crashing the script  Huh

Anyway, sorry Travis.

This was the last log generated by the script.

mklivecd, version 0.7.2, http://livecd.berlios.de/
Copyright (C) 2002-2004, Jaco Greeff <jaco@puxedo.org>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
DIE
FATAL: Too many command-line arguments

THE ABOVE OUTPUT WAS GENERATED BY THE FOLLOWING COMMAND:

mklivecd --root=/ --tmp=/home --volumeid=2009_08_06 --preparer=Michael Malone --publisher=Michael Malone --fstab=rw,noauto --md5sum --lzma --timeout=5 --splash=silent --splash=verbose --ufs=unionfs --resolution=1024x768 --nodir=^/tmp,^/etc/skel-previous-bak,^/mnt,^/home/mklivecd.* --nofile=^/var/cache/apt/pkgcache.bin,^/var/cache/apt/srcpkgcache.bin,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.extra,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.gnome,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.kde,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.main,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.nonfree,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.testing,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.extra,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.gnome,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.kde,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.main,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.nonfree,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.testing  /tmp/minimehp-2009.1.iso

Here's another, they all fail for too many arguments. I don't enter them, they are generated by the script.

mklivecd, version 0.7.2, http://livecd.berlios.de/
Copyright (C) 2002-2004, Jaco Greeff <jaco@puxedo.org>

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
DIE
FATAL: Too many command-line arguments

THE ABOVE OUTPUT WAS GENERATED BY THE FOLLOWING COMMAND:

mklivecd --root=/ --tmp=/home --volumeid=2009_08_06 --preparer=Michael Malone --publisher=Michael Malone --fstab=rw,noauto --md5sum --lzma --timeout=5 --splash=silent --splash=verbose --ufs=unionfs --resolution=1024x768 --nodir=^/home,^/home/guest,^/tmp,^/mnt,^/home/mklivecd.* --nofile=^/var/cache/apt/pkgcache.bin,^/var/cache/apt/srcpkgcache.bin,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.extra,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.gnome,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.kde,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.main,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.nonfree,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_pkglist.testing,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.extra,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.gnome,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.kde,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.main,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.nonfree,^/var/lib/apt/lists/distro.ibiblio.org_pub_linux_distributions_texstar_pclinuxos_apt_pclinuxos_2007_base_release.testing  /home/minimehp-2009.1.iso


Logged
travisN000
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1709


« Reply #37 on: August 07, 2009, 12:43:58 AM »

mklivecd is throwing the error because the options passed to it by my script are more than it can handle..  (..as it says Wink )  ..this happens because the error checking I added to the script expands the wildcard (*) to make sure the files exist..  the downside is it can sometimes (as is your case) expand to really long strings that are too much for mklivecd.

try it again without excluding the apt list files (if you really want them gone, just delete them before remastering.. new ones will be created next time you update)
Logged
mbmalone
Full Member
***
Offline Offline

Posts: 194


« Reply #38 on: August 07, 2009, 06:24:56 PM »

I'll try it, I was deleting them, anyway before.
And using bleachbit, as well.

I can't believe that was crashing the script, there were not even any files in there, they did not exist  Huh

mklivecd is throwing the error because the options passed to it by my script are more than it can handle..  (..as it says Wink )  ..this happens because the error checking I added to the script expands the wildcard (*) to make sure the files exist..  the downside is it can sometimes (as is your case) expand to really long strings that are too much for mklivecd.

try it again without excluding the apt list files (if you really want them gone, just delete them before remastering.. new ones will be created next time you update)
Logged
mbmalone
Full Member
***
Offline Offline

Posts: 194


« Reply #39 on: August 21, 2009, 06:34:57 PM »

Now what the heck did I do this time  Huh
I used the mkremaster2 script with the 2.6.27.31.tex3 kernel?



Logged
mbmalone
Full Member
***
Offline Offline

Posts: 194


« Reply #40 on: August 22, 2009, 08:01:14 AM »

mklivecd makes use of the /tmp folder so I had to uncheck that option in the pclinuxos control center
-> Boot -> Setup boot system -> Advanced -> uncheck clean tmp on boot.

I dd not remember changing that setting, must have been two weeks ago.  Roll Eyes


Now what the heck did I do this time  Huh
I used the mkremaster2 script with the 2.6.27.31.tex3 kernel?
Logged
travisN000
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1709


« Reply #41 on: September 01, 2009, 10:27:05 AM »

Sorry about the delayed response; I've been busy with real life lately!  Grin


The option to clean tmp at boot mounts /tmp as a ramdisk..  a virtual disk that exists only in ram.  Because /tmp is the default location for files collected by mklivecd in the remaster process (although the user can change this) and mklivecd needs lots of tmp space, the script checks fstab for the ramdisk condition to help identify it as a possible source of errors related to unsufficient tmp space.. 

If the remaster is small and you have sufficient ram, you should have no problems leaving tmp set to "clean on boot" (aka.. 'mount /tmp as ramdisk').  On the other hand, if ram is limited and the remaster is bigger, the relatively small space alloted for /tmp by mounting it to ram could be a problem.
Logged
musonio
Guest
« Reply #42 on: December 27, 2009, 12:33:08 PM »

Travis:
I am trying to run mkremaster2.3.2.sh.
However, after I select which dirs to exclude, I get a literally endless:
Code:
Entry was not a valid directory; it will be ignored.
and I have to kill the script.

I was running it to see how it manages to calculate needed space when a certain directory is (unknowingly) listed twice in the exclusion list.
My case:
I always select to exclude
/mnt
/var/cache/apt/archives
forgetting that /var/cache/apt/archives is actually a link to /mnt/sdb/SYNAPTIC.
I know it is stupid of a person to forget this, but it could happen.

EDIT:
Travis: This is nor important nor urgent. Actually, it's just curiosity, so take your time.
I attached the script. I ran that version because it was the latest I could find in the thread.


[attachment deleted by admin]
Logged
travisN000
Global Moderator
Hero Member
*****
Offline Offline

Posts: 1709


« Reply #43 on: December 30, 2009, 02:15:21 PM »

The script uses the du command to calculate directory usage (size)..  This occurs on lines 542, 555, 851, and 865 (f11 in kwrite to display line numbers).

Try changing du -sh to du -shx to exclude links to directories on different file systems.  

Even if you don't fix it, the error message leads me to believe that the script will still continue..  it just takes quite a while if the directory is larger in size (..my guess is that it will print that error for every file that is on the linked directory before continuing Huh )
Logged
musonio
Guest
« Reply #44 on: December 30, 2009, 02:20:29 PM »

I had already tried that.
I tried it with a directory which contains symlinks and both du -sh and du -shx gave me the same result.
Logged
Pages: 1 2 [3] 4   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM