Steven M. Parrish's build method failing.
by David Farning
Hi,
I am starting the XO Operating System SIG by documenting the various
current efforts to build fedora base systems for the XO. This weekend
I documented and tested how to automate the build system for Steven
M. Parrish's work. The documentation is at
http://wiki.sugarlabs.org/go/Xoos/Resources .
Can anyone help me with the following error?
david
[dfarning@localhost output]$ make ../Makefile -f name.img
make: Nothing to be done for `../Makefile'.
[dfarning@localhost output]$ ../Makefile -f name.img
../Makefile: line 1: fg: no job control
../Makefile: line 3: fg: no job control
[sudo] password for dfarning:
...
snip
....
device-mapper: remove ioctl failed: Device or resource busy
Command failed
/usr/lib/python2.6/site-packages/imgcreate/errors.py:45:
DeprecationWarning: BaseException.message has been deprecated as of
Python 2.6
return unicode(self.message)
Error creating Live CD : Could not remove snapshot device
../Makefile: line 5: fg: no job control
[sudo] password for dfarning:
...
snip
...
readlink: invalid option -- '.'
Try `readlink --help' for more information.
readlink: invalid option -- '.'
Try `readlink --help' for more information.
readlink: invalid option -- '.'
Try `readlink --help' for more information.
readlink: invalid option -- '.'
Try `readlink --help' for more information.
/home/dfarning/fedora-xo/output/$^: No such file or directory
Cleaning up to exit...
umount: /media/isotmp.xAg4fh: not mounted
../livecd-iso-to-xo.sh: line 7: [: missing `]'
../Makefile: line 7: fg: no job control
/usr/bin/livecd-iso-to-disk [--format] [--reset-mbr] [--noverify]
[--overlay-size-mb <size>] [--home-size-mb <size>]
[--unencrypted-home] [--skipcopy] <isopath> <usbstick device>
dd: unrecognized operand `name.img'
Try `dd --help' for more information.
../Makefile: line 10: fg: no job control
gzip: $^: No such file or directory
../Makefile: line 13: .PRECIOUS:: command not found
[dfarning@localhost output]$
14 years, 7 months
Re: booting soas71xo.4gremovable.img.tar.lzma
by Martin Dengler
Hi Dan,
Hope you don't mind me forwarding this to the fedora-olpc list,
because I think other people may be having the same problem.
I'll have a look at submitting a patch upstream or working around the
problem.
Martin
On Sun, Oct 04, 2009 at 05:40:28PM -0700, Dan Krejsa wrote:
> Hmm,
>
> Maybe since in the initrd image sh is a symlink to dash (not bash), the problem
> is a difference between dash and bash.
>
> http://gondor.apana.org.au/~herbert/dash/
>
> Perhaps 10olpc-boot-premount.sh should avoid bashisms like [[ ?
>
> - Dan
>
> On Sun, Oct 4, 2009 at 5:08 PM, Dan Krejsa <dan.krejsa(a)gmail.com> wrote:
> > Hi Martin,
> >
> > I'm trying to boot my g1g1 XO using a USB flash drive created
> > according to the instructions at
> >
> > http://people.sugarlabs.org/~mtd/soas/README.txt
> >
> > using the soas71xo.4gremovable.img.tar.lzma filesystem.
> >
> > The boot is failing to mount the root fs, with messages ending with
> > stuff like the following (copied manually & skipping the timestamps):
> >
> > VFS: Cannot open root device "LABEL=OLPCRoot" or unknown-block(0,0)
> > Please append a correct "root=" boot option; here are the available partitions:
> > 1f00 1048576 mtdblock0 driver: CAF|-e NAND
> > Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
> >
> > I tried adding a 'root=/dev/sda1' argument to the boot line in the openboot
> > and setting the 'ramdisk' environment variable to
> >
> > u:\boot\initrd-2.6.30_xo1-20090808.1740.1.olpc.a817f86.img
> >
> > before booting. That got somewhat further, but still failed as discussed
> > below.
> >
> > I found that if I added a symlink /boot/initrd.img to the file
> > initrd-2.6.30_xo1-20090808.1740.1.olpc.a817f86.img in the same
> > directory, I didn't need to intervene at the openboot forth prompt.
> > The ramdisk was then loaded and /dev/sda was mounted automatically.
> >
> > However, there were still errors during boot. First, there were some messages
> >
> > FATAL: Module scsi_wait_scan not found.
> >
> > that repeated several times before the root file system was apparently
> > successfully
> > mounted.
> >
> > Immediately after the 'Hello, (children of the) world!'
> >
> > message, there were the following errors:
> >
> > [: 48: 1: unexpected operator
> > /pre-mount/10olpc-boot-premount.sh: 71: -z: not found
> > [: 72: 0: unexpected operator
> > [: 85: unexpected operator
> > dracut: Mounted root filesystem /dev/sda1
> > dracut: Warning: Machine in enforcing mode and cannot execute load_policy.
> > dracut: Warning: To disable selinux, add selinux=0 to the kernel command line
> > dracut Warning: Not continuing
> >
> > I figure I could add 'selinux=0' to the command line set up in
> > /boot/olpc.fth (?)
> > but I'm not sure about the earlier things that look like script errors earlier.
> > I gather that /pre-mount/10olpc-boot-premount.sh is in the initrd image.
> > I'm not an expert bash scripter and am not sure what's going on there.
> > Any ideas?
> >
> > - Dan
> >
>
14 years, 7 months
Know anything about smolt?
by Martin Dengler
Know anything about smolt? We could use some help / advice on how
best to use it.
My SoaS spins, like Sebastian's more recent ones, have smolt installed
and send a smolt report every time a network interface comes up with a
valid default route.
I spent a few minutes toying with the small NetworkManager dispatcher
script[1] that implements this and then forgot about it.
Anyone care to do better (wouldn't take much) script-wise /
approach-wise? Anyone know how these things work and can see if any
data have been collected (I'm sure a few XOs of mine have submitted
reports)?
Thanks,
Martin
1. http://cgit.sugarlabs.org/soas/mainline/tree/soas-sugar.ks#n103
Looks like I didn't get around to committing that "only try to send if
there's a default route" part yet.
14 years, 7 months
sugar-toolkit dep & ACLs annoyance
by Michael Stone
Dear fedora-olpc,
I just wanted to mention to you that I enjoyed trying out your work this
evening in an F12 chroot. While testing, I encountered some bugs, one of which
I filed for you at
https://bugzilla.redhat.com/show_bug.cgi?id=526618
Pursuant to that issue, I also prepared the following patch, which I attempted
to apply to fedora-cvs on your behalf. Unfortunately, I was stymied due to lack
of appropriate ACLs, ending my involvement for the evening.
Regards,
Michael
P.S. - Incidentally, thanks to whoever is responsible for the nice scripts in
fedora-packager. They are a great improvement over what was available the last
time we worked together.
[sugar@heat F-12]$ cvs diff -u
cvs diff: Diffing .
Index: sugar-toolkit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/sugar-toolkit/F-12/sugar-toolkit.spec,v
retrieving revision 1.56
diff -u -r1.56 sugar-toolkit.spec
--- sugar-toolkit.spec 27 Sep 2009 17:19:44 -0000 1.56
+++ sugar-toolkit.spec 1 Oct 2009 04:08:26 -0000
@@ -6,7 +6,7 @@
Summary: Sugar toolkit
Name: sugar-toolkit
Version: 0.86.0
-Release: 1%{?dist}
+Release: 2%{?dist}
#Release: 2.%{alphatag}%{?dist}
URL: http://wiki.laptop.org/go/Sugar
# git clone git://dev.laptop.org/sugar
@@ -37,6 +37,7 @@
Requires: sugar-presence-service
Requires: python-simplejson
Requires: python-json
+Requires: unzip
%description
Sugar is the core of the OLPC Human Interface. The toolkit provides
@@ -68,6 +69,9 @@
%{_sysconfdir}/rpm/macros.sugar
%changelog
+* Thu Oct 01 2009 Michael Stone <michael(a)laptop.org> - 0.86.0-2
+- bz#526618: Add dependency on unzip
+
* Sun Sep 27 2009 Sebastian Dziallas <sebastian(a)when.com> - 0.86.0-1
- New upstream release
14 years, 7 months