Thread
:
[Depreciated] BackupMenu - Backup & restore OS images(+ other features)
View Single Post
RobbieThe1st
2010-09-08 , 21:55
Posts: 842 | Thanked: 1,197 times | Joined on May 2010
#
167
I've been working on this solidly since my last post.
Curently, I have two files:
BackupMenuLauncher.item
, which is in /etc/bootloader.d/ and runs when you start up your N900 with the keyboard open.
This file makes a ramdisk(and now, a tmpfs), loads all required files into it, and copies the second file, the actual program, from /opt/
BackupMenu.item
, then chroots into the ramdisk launching that file.
Code for each of these is pastebinned in the above links.
When I run this from the Maemo terminal as root, it works(as best I can see of it). I get errors on not being able to use udev(as its already running), but it actually seems to launch the script fine.
When I run it from the bootmenu-console, everything works fine until the launcher chroots, at which point it apparently dies and drops back to the bootmenu official menu.
Any ideas on what I'm doing wrong?
P.S. How do I get /etc/mtab in my chroot?
"mount" does this.
edit: Yea, still having the problem.
edit2:
Found it. The second file was in /opt/, which is
its own partition
... which isn't mounted deliberately. :\
Moved it to the root partition, worked great.
edit3:
Sooo... working away at it. I'm having trouble mounting the SD partition; getting "invalid argument". I'm sure its something simple(or maby not...)
Thanks,
-Rob
Last edited by RobbieThe1st; 2010-09-11 at
10:56
.
Quote & Reply
|
The Following 2 Users Say Thank You to RobbieThe1st For This Useful Post:
Dany-69
,
fw190
RobbieThe1st
View Public Profile
Send a private message to RobbieThe1st
Find all posts by RobbieThe1st