On Sep 14, 2008, at 4:19 AM, Michael Keuter wrote:

>> I'm just uploading some new images to my website.  Some of these  
>> are the
>> regular 'runnix' files where the tar ball contains the appropriate
>> astlinux-XXX.run, run.conf etc files and some are complete images  
>> that
>> you can simply dd to a new CF.  The complete images have a naming
>> convention of cf-0.6-XXXX-ARCH.img.gz
>>
>> Darrick
>> --
>
> Hi Darrick,
>
> thanks for the new images. But in the new 1958-geni586-image the
> "/oldroot/cdrom/" directory is empty after reboot. That means you
> cannot update, whithout plugging the CF-card out.
> It also seems that the trunk-images (in my case 1907) has precedence
> over the 0.6 version. That could be a naming convention. You
> mentioned a "ver" file some time ago. How is the syntax for that?
>
> Michael

Actually this is a new feature, Darrick added the polishing touches to  
the initrd.img, which includes unmounting the FAT16 (vfat) runnix  
partition after the 'run' file is loaded into memory.  Cleaning up.

In order to update the /oldroot/cdrom/os/ directory you need to mount / 
dev/hd[ab]1, I'll defer to others to give the proper mount command.

The somewhat confusing part of this, as Michael discovered, is that  
you can place files in /oldroot/cdrom, but they will not persist  
across reboots unless /oldroot/cdrom is attached to /dev/hd[ab]1 .

Perhaps in the future, a script:
/usr/sbin/update-run-image 
"http://www.djhsolutions.com/astlinux/astlinux-0.6-XXXX-ARCH.tar.gz 
"

would...
1) mount the runnix partition, if necessary

2) move the current run* files, possibly to /oldroot/cdrom/old/  
(removing any previous old files there)

3) wget $1

4) tar xzf ...

5) move files from #4 to /oldroot/cdrom/os/

6) cleanup created directory from #4

7) if error, unmount the runnix partition and exit with non-0

8) exit with 0 if all went well.

9) The calling program would issue an /sbin/reboot if exit 0

Just an idea... but if updating were this convenient, leaving the  
runnix partition unmounted becomes a moot point. IMHO

Then, perhaps...
/usr/sbin/revert-run-image

if-and-only-if old/run* files exist, this script would remove the  
current run* files and move the old/run* files to os/

Lonnie







Lonnie


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to