LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2014, 05:37 AM   #1
graemekean
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Rep: Reputation: Disabled
embed userdata in update.zip and extract to folder during install


Hi guys - total noob to linux here.
I've been playing around with a linux update for XBMC on a matricom mx2 tv box. I've learned how to unpack the update - unsquashfs the usr.sqsh file (and re-squash) and finally how to re-pack and sign the update.zip.
I have been playing around with the updater-script but I don't really have a good idea how this update works.
Basically I would like to embed a folder called userdata into the update and extract that data upon install into a selected folder.
I'm sure this is a simple task, but I'm not even sure where such a command would be placed (in the updater-script?).
Any help you guys can give would be greatly appreciated - it's taking me ages to make quick changes - repack and sign - then load onto the box to test - and I'm getting nowhere fast.
Thanks in anticipation.
G.
 
Old 07-11-2014, 08:43 AM   #2
graemekean
LQ Newbie
 
Registered: Jul 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Angry Am I looking in the wrong place?

Wow guys - I thought this was a total noob question but I haven't had a single response yet.
I can only assume that I am looking in the wrong place - perhaps this cannot be achieved through knowledge of linux?
If any of you guys can point me in the direction of where I might find an answer to this one it would be greatly appreciated.

Thanks in anticipation.

G.
 
Old 07-11-2014, 09:26 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
this is what i am getting:
Code:
[schneidz@hyper ~]$ uname -a
Linux hyper 2.6.43.8-1.fc15.x86_64 #1 SMP Mon Jun 4 20:33:44 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[schneidz@hyper ~]$ updater-script
bash: updater-script: command not found...
seems to be like some specific software you are trying to install/modify. have you asked over at the xbmc forums (since they wrote it some developer over there can probably provides hints of how to modify it).

this is not a generic linux thing that is normal.


generically speaking, this is how one would add a file to a zip-file:
Code:
[schneidz@hyper temp]$ unzip -l userdata.zip 
Archive:  userdata.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
       12  07-11-2014 10:28   1.txt
       12  07-11-2014 10:28   2.txt
---------                     -------
       24                     2 files
[schneidz@hyper temp]$ zip userdata 3.txt 
  adding: 3.txt (stored 0%)
[schneidz@hyper temp]$ unzip -l userdata.zip 
Archive:  userdata.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
       12  07-11-2014 10:28   1.txt
       12  07-11-2014 10:28   2.txt
       14  07-11-2014 10:29   3.txt
---------                     -------
       38                     3 files

Last edited by schneidz; 07-11-2014 at 09:35 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract userdata.img chinabenjamin66 Linux - Embedded & Single-board computer 2 11-11-2012 09:16 PM
how do i embed a file into an image and extract it baronobeefdip Linux - Software 6 06-29-2012 03:50 PM
Cannot extract ZIP file in Linux eng_mohammedmostafa Linux - Software 12 05-26-2009 09:10 AM
Extract WINRAR ZIP TO LINUX/UNIX linux_linux Linux - Software 2 03-15-2008 09:44 PM
How do I extract a multipart zip/ror file drspore Linux - General 2 02-07-2004 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration