WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: One command update of the sce directory.  (Read 19922 times)

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #15 on: November 15, 2014, 05:10:04 AM »
netnomad - which package are you trying to import?  Name a specific one so I can try the same just to make sure.

I can't reproduce those errors, all is working as expected here, though I see a few odds and ends I can clean up in /tmp once the import session is over.

Does anyone else have the same issue involving the startup scripts?

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #16 on: November 15, 2014, 07:07:23 AM »
I have added a few fixes to the dCores.  Please download a new copy and test.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: One command update of the sce directory.
« Reply #17 on: November 15, 2014, 07:17:59 AM »
hi jason,

sorry, i did not mention that i have now problems with the importsce-comand, too.
but it makes no difference, because the same error messages appear with updatesce.

i took your last copy
tc@box:~/.MNT/sdb1/live/dcore-testing/boot$ md5sum dCore.gz
26a24bc62db2ede967b8789100ef1257  dCore.gz

this is my lst-file
tc@box:~/.TCE/sce$ cat 000-base-jessie.sce.lst
console-setup
console-data
bash
mc
ssh
rsync
screen
grep
tar
zip
unzip
gzip
bzip2
xz-utils
p7zip-full
nmap
iptables
fail2ban
redsocks
pdnsd
tcpdump
gnupg
laptop-mode-tools
pm-utils
importupdatecheck
man-db
wifi
wpasupplicant
firmware-all
ntfs-3g
lvm2
cryptsetup
libsmartcols1


this is my importsce-command:
tc@box:~$ importsce -n 000-base-jessie
Using the -n option.
 
debian
#################### 100.0% 0.0 kBps DONE   

verifying download...checksum matches OK
used 10950656 local, fetched 0

Using the repo http://ftp.us.debian.org/debian debian jessie main
 
Creating 000-base-jessie.sce from package list /mnt/sdb2/tce/sce/000-base-jessie.sce.lstUsing Package Index: /etc/sysconfig/tcedir/debian_jessie_main_i386_Packages
Using debian Mirror: http://ftp.us.debian.org/debian

000-base-jessie is from your own custom package list:

Gathering dependency info..
Merging libsmartcols1
Merging libcryptsetup4
Merging cryptsetup-bin
Merging cryptsetup
Merging liblvm2cmd2.02
Merging dmeventd
Merging libreadline5
Merging dmsetup
Merging libudev1
Merging libdevmapper1.02.1
Merging libdevmapper-event1.02.1
Merging lvm2
Merging libtasn1-6
Merging libp11-kit0
Merging libnettle4
Merging libhogweed2
Merging libgmp10
Merging libgnutls-deb0-28
Merging ntfs-3g
Merging b43-fwcutter:
Merging zd1211-firmware:
Merging prism2-usb-firmware-installer:
Merging libertas-firmware:
Merging intel-microcode-amd64:
Merging intel-microcode:
Merging firmware-realtek:
Merging firmware-ralink:
Merging firmware-qlogic:
Merging firmware-netxen:
Merging firmware-myricom:
Merging firmware-linux-nonfree:
Merging firmware-linux-free:
Merging firmware-libertas:
Merging firmware-iwlwifi:
Merging firmware-ivtv:
Merging firmware-ipw2x00:
Merging firmware-intelwimax:
Merging firmware-brcm80211:
Merging firmware-bnx2x:
Merging firmware-bnx2:
Merging firmware-b43legacy-installer:
Merging firmware-b43-lpphy-installer:
Merging firmware-b43-installer:
Merging firmware-atheros:
Merging bluez-firmware:
Merging atmel-firmware:
md5sum: firmware-all.tar.gz.md5.txt: No such file or directory
Merging libpcsclite1
Merging libnl-genl-3-200
Merging libnl-3-200
Merging libdbus-1-3
Merging wpasupplicant
Merging libiw30
Merging wireless-tools
Merging wifi:
Merging less
Merging libpipeline1
Merging bsdutils
Merging bsdmainutils
Merging groff-base
Merging man-db
Merging importupdatecheck:
Merging powermgmt-base
Merging pm-utils
Merging psmisc
Merging tzdata
Merging Tiny Core custom start script for util-linux: util-linux.deb2sce
cat: /tmp/util-linux.deb2sce: No such file or directory
rm: cannot remove '/tmp/util-linux.deb2sce': No such file or directory
Merging util-linux
Merging laptop-mode-tools
Merging libusb-0.1-4
Merging gpgv
Merging gnupg
Merging tcpdump
Merging pdnsd
Merging libevent-2.0-5
Merging redsocks
Merging libpython-stdlib
Merging Tiny Core custom start script for python-minimal: python-minimal.deb2sce
cat: /tmp/python-minimal.deb2sce: No such file or directory
rm: cannot remove '/tmp/python-minimal.deb2sce': No such file or directory
^C
tc@box:~$

i stopped the importsce-process with strg-c.

thank you for your help.
« Last Edit: November 15, 2014, 07:25:01 AM by netnomad »

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #18 on: November 15, 2014, 03:37:12 PM »
The current md5sum of dCore.gz is

http://tinycorelinux.net/5.x/x86/release_candidates/dCore.gz.md5.txt

eea5fd24728c69141d92e90183e3bcd2  dCore.gz

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #19 on: November 15, 2014, 04:17:14 PM »
netnomad - What are the owner/perms of your /tmp directory?

And what is the outcome of the below commands?

sudo rm /tmp/deb2sce.tar.gz

wget -O /tmp/deb2sce.tar.gz -cq http://repo.tinycorelinux.net/5.x/import/deb2sce.tar.gz




Also, you mentioned the md5sum of dCore.gz when you are apparently using dCore-jessie.gz. 

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #20 on: November 15, 2014, 07:20:03 PM »
i have revamped importsce and it's support scripts to be more robust in issuing an md5sum on each deb in storage rather than relying on a local md5sum file, does not seem to cost any noticable time but will be more resistant to potential breakage of local files.  I will upload the results soon. 

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: One command update of the sce directory.
« Reply #21 on: November 16, 2014, 12:08:51 AM »
Quote
The current md5sum of dCore.gz is
http://tinycorelinux.net/5.x/x86/release_candidates/dCore.gz.md5.txt
eea5fd24728c69141d92e90183e3bcd2  dCore.gz

it's my fault, in the past i renamed dCore-jessie to dCore to make my config-files so multifunctional as possible.
i changed that now to avoid further misunderstandings...

Quote
sudo rm /tmp/deb2sce.tar.gz
wget -O /tmp/deb2sce.tar.gz -cq http://repo.tinycorelinux.net/5.x/import/deb2sce.tar.gz

i get no message, no output in the terminal, but the import-process fails :(

owner/perms of /tmp
drwxrwxrwt 10 tc   staff  1020 Nov 16 09:06 tmp/

thank you for your help.
« Last Edit: November 16, 2014, 12:40:22 AM by netnomad »

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #22 on: November 16, 2014, 01:45:42 AM »
There seems to be an issue with the /tmp/deb2sce.tar.gz that gets downloaded once per import session.  Yet there is a check for import to fail if it does not exist.  I am trying to wrap my head around it.  I will upload some more changes in the next few hours, then we can try again.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #23 on: November 16, 2014, 02:06:23 AM »
Uploaded another fix, this time to actually md5sum the existiing .tar.gz or .deb files if they exist rather than relying on an md5.txt file for more security with little cost in efficiency.  Please test, and if anyone is having any deb2sce issue let me know as all is working on my setup. 

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: One command update of the sce directory.
« Reply #24 on: November 16, 2014, 02:42:21 AM »
hi jason,

sorry, that i have to give a disappointing reply.
i tried your last cut 3 times and the error message occured 3 times at the same packages:
...
Merging tzdata
ash: 1c34c5663fdaeea6f48f90d18228f398: unknown operand
Merging Tiny Core custom start script for util-linux: util-linux.deb2sce
cat: /tmp/util-linux.deb2sce: No such file or directory
rm: cannot remove '/tmp/util-linux.deb2sce': No such file or directory
Merging util-linux
...
Merging libpython-stdlib
Merging Tiny Core custom start script for python-minimal: python-minimal.deb2sce
cat: /tmp/python-minimal.deb2sce: No such file or directory
rm: cannot remove '/tmp/python-minimal.deb2sce': No such file or directory
Merging extra files for python-minimal: python-minimal-data.tar.gz
Merging python-minimal
...
Merging libpython2.7-minimal
Merging Tiny Core custom start script for python2.7-minimal: python2.7-minimal.deb2sce
cat: /tmp/python2.7-minimal.deb2sce: No such file or directory
rm: cannot remove '/tmp/python2.7-minimal.deb2sce': No such file or directory
Merging python2.7-minimal
Merging Tiny Core custom start script for python2.7: python2.7.deb2sce
cat: /tmp/python2.7.deb2sce: No such file or directory
rm: cannot remove '/tmp/python2.7.deb2sce': No such file or directory
Merging python2.7
Merging Tiny Core custom start script for python: python.deb2sce
cat: /tmp/python.deb2sce: No such file or directory
rm: cannot remove '/tmp/python.deb2sce': No such file or directory
Merging python
...

could it be that my usbstick-filesystem is overloaded and stops for a moment to save the transfered data?
i happens that my sytem seems to freeze, even the fluxbox-clock is not updated for up to 20s,
but after some time everything reactivates fine again.
i guess my stick is pretty fast, but after 100-200mb it needs some time to be able for further transfers.

thank you for your patience.
« Last Edit: November 16, 2014, 02:45:37 AM by netnomad »

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #25 on: November 16, 2014, 02:45:40 AM »
Ok, usb, should not make a difference but I will try via usb and see if I can reproduce.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #26 on: November 16, 2014, 05:41:43 AM »
netnomad - I see the same issue on USB.  It should not be, but it is.  I will fix it.

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: One command update of the sce directory.
« Reply #27 on: November 16, 2014, 05:55:02 AM »
hi jason,

luckily we've met at the same point :)

thank you for your commitment.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #28 on: November 16, 2014, 06:07:51 AM »
Uploading what is hopefully the fix.  What works for hard drives seems not always so for USB unfortunately.  Thanks for testing.

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: One command update of the sce directory.
« Reply #29 on: November 16, 2014, 06:52:13 AM »
Found some bugs again, uploaded all dCores with fix.  Please download and test.