WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How do you go about remastering dcore?  (Read 4248 times)

Offline Lassar

  • Newbie
  • *
  • Posts: 19
How do you go about remastering dcore?
« on: January 16, 2018, 06:22:36 PM »
I have read all the remaster guides in the wiki.

All of these guides seem to apply to tiny core.

Where are the guides for remastering dcore?

How much in the tiny core remastering  guides apply to dcore?

Is it possible to modify ezremaster OR qremaster to work with dcore?

« Last Edit: January 16, 2018, 06:30:27 PM by Lassar »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How do you go about remastering dcore?
« Reply #1 on: January 17, 2018, 05:39:58 AM »
Remastering dCore is pretty much the same as Core.  dCorePlus is basically a remastered dCore, extensions in a remaster go in /tmp/builtin.  They can in a directory named /cde at the root of the CD for a cdrom image.   

The existing remastering tools could be modified  to work with dCore, but so far there has not been much demand for it. 

What I do when packing and unpacking dCore images is use a simple script and make the changes to the files within  them.  To unpack an image, I use the below script named dCoreunpack.sh with the usage "dCoreunpack.sh dCore-trusty.gz" to unpack dCore-trusty.gz into a rootfs directory:

Code: [Select]
#!/bin/sh

CORE="$1"

if [ ! -d rootfs ]; then
mkdir rootfs
else
rm -r rootfs/*
fi

cd rootfs

zcat ../"$CORE" | cpio -i -H newc -d
 
cd -

Then to repack, I use the below with the name dCorepack.sh and the usage "dCorepack.sh dCore-trusty.gz" to repack dCore-trusty.gz:

Code: [Select]
#!/bin/sh

CORE="$1"
REPO=`cat rootfs/usr/share/doc/tc/repo.txt`
RELEASE=`echo dCore-"$REPO":$(date "+%Y.%m.%d.%H.%M")`
echo "$RELEASE" > rootfs/usr/share/doc/tc/release.txt
echo "$RELEASE" > dCore-"$REPO".latest
cd rootfs

find | cpio -o -H newc | gzip -2 > ../"$CORE"
cd ..
md5sum "$CORE" > "$CORE".md5.txt

cd -


These scripts should be run with root privileges.
« Last Edit: January 18, 2018, 02:29:15 PM by Jason W »

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How do you go about remastering dcore?
« Reply #2 on: January 17, 2018, 06:22:34 PM »
If remastering a dCore cdrom image, it is the same as any remaster of a cdrom.

Offline Lassar

  • Newbie
  • *
  • Posts: 19
Re: How do you go about remastering dcore?
« Reply #3 on: January 19, 2018, 12:46:42 PM »
How do you use gzip to gzip a archive.

I tried it and found that it would make a individual gz file of every file in the folder.

I just want to make one big zip file, not a bunch of little ones.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: How do you go about remastering dcore?
« Reply #4 on: January 19, 2018, 04:10:50 PM »
What I do is use tar on the directory involved, then gzip that tar archive of the directory.