Thanks for the insightful suggestions Sam.
I will definitely try some of them. I already have breakpoints
in my shutdown script and several options to pause until a key is
pressed. Currently all that my new /sbin/init script does is
touch a file and then endlessly sleep. I may need to change
I haven't forgotten about this. I had been statically linking BB
to glibc because that was easy. I'm now struggling with
buildroot to create a BB that is statically linked to uclibc.
Maybe this has been the root of the problem all along. So far
I've been able to build BB but it just segfaults
On 2014-08-10 08:07, James Bowlin wrote:
BTW: I use the start-time of processes to find all the processes
that need to be killed. Using pid is unreliable because it can
wrap on 32-bit systems.
The *only* way to be 100% sure they are no remaining processes at
some point in a system's lifetime
On Sun, Aug 10, 2014 at 09:38 AM, Laurent Bercot said:
The *only* way to be 100% sure they are no remaining processes at
some point in a system's lifetime is to kill them all - like aliens,
or zombies. Trying to be smarter or more gentle than that is a
losing battle: any process can sneakily
On 2014-08-10 11:29, James Bowlin wrote:
I've been able to deal with processes that spawn children on
shutdown but it might be possible for someone to intentionally
build a fork bomb that I would have trouble with. I believe that
if someone with root is malicious enough then they can defeat any
On 10 August 2014 02:42, James Bowlin bit...@gmail.com wrote:
You can make a /lib/ directory and cp -a libraries and links
into it until the dynamically compile application works. I also
wrote a 60-line script for doing this automatically but I have
not used it in a number of years. I just
I sent that some time ago, but i detected some problems with more.
Here is the refreshed patch against master (1.23.git) with a real KBuild
feature.
https://dl.dropboxusercontent.com/u/31689596/busybox/dmesg.png
0001-dmesg-implement-official-r-and-colored-output-C.patch
Description: Binary
the -r should be tested on PRETTY feature...
0001-dmesg-implement-official-r-and-colored-output-C.patch
Description: Binary data
___
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
Title: Re: [PATCH] dmesg -r / dmesg -C (v2)
Reduced a bit the patch on the last tests
-if (color (opts OPT_C))
+if (color)
0001-dmesg-implement-official-r-and-colored-output-C.patch
Description: Binary data
___
busybox mailing list
From 26bc9bac4cfcb9683e2f166af4234e5240245063 Mon Sep 17 00:00:00 2001
From: Tanguy Pruvot tanguy.pru...@gmail.com
Date: Sun, 10 Aug 2014 16:07:17 +0200
Subject: [PATCH] dmesg: implement official -r and colored output -C
Actually there is no way to have the level with the DMESG_PRETTY
-r option
From fc02833cfaf1eb04b7c4d6026717a9c9e3a6a7f7 Mon Sep 17 00:00:00 2001
From: Tanguy Pruvot tanguy.pru...@gmail.com
Date: Sun, 10 Aug 2014 16:07:17 +0200
Subject: [PATCH] dmesg: implement official -r and colored output -C
Actually there is no way to have the level with the DMESG_PRETTY
-r option
Hi James !
On 10.08.2014 09:39, James Bowlin wrote:
I had been statically linking BB to glibc because that was easy.
Ok thats easy, but glibc need additional files in your chroot/initramfs
to enable locale support (some files from /usr/share/locale - and maybe
others; I'm no locale guru).
On 08/10/2014 03:39 AM, James Bowlin wrote:
I ran into problems like this years ago when I tried it before.
I had given up before because there were just so many variables
(kernel header version ublibc version, binutils version,
buildroot version, busybox version, and more) that could cause
the
Hi Michael !
(would love to see someone put together a gentoo-musl! )
Shouldn't be difficult to do. Older versions of musl have already build
without trouble on my Gentoo system.
--
Harald
___
busybox mailing list
busybox@busybox.net
Thanks Laurent, I'm learning a lot. It is refreshing to have
someone to talk with about this stuff but I'm going to have to
wrap this up soon. It feels like I'm spawning children on this
list faster than I can kill them off. I will certainly read any
replies (at least) and I might come back to
Thanks for the tip Michael!
On Sun, Aug 10, 2014 at 02:49 PM, Michael Conrad said:
Want a cheap trick for getting it all to work? Extract
gentoo-uclibc in a directory, chroot into it (with a number of
the Gentoo install steps like setting up resolv.conf and /dev
and /proc) and then
On Sun, Aug 10, 2014 at 08:20 PM, Harald Becker said:
Ok thats easy, but glibc need additional files in your
chroot/initramfs to enable locale support (some files from
/usr/share/locale - and maybe others; I'm no locale guru).
After some experimentation I finally got buildroot to create a
On 2014-08-10 20:49, Michael Conrad wrote:
Gentoo-uclibc in a chroot is my weapon of choice these days. I hate
cross-compiling with a passion.
(would love to see someone put together a gentoo-musl! )
I can't wait for Rob to finish the Aboriginal Linux move
to musl. The Aboriginal
I create mini linux and install in rootfs the aplications Busybox, Kernel,
interpreter Lua language.
The problem is that lua interpreter not run the only applets of busybox.
Thanks friends
2014-08-10 9:24 GMT-03:00 Steven Honeyman stevenhoney...@gmail.com:
On 10 August 2014 02:42, James
Hi James !
After some experimentation I finally got buildroot to create a
working busybox based on uclibc. I enabled wchar but disabled
all locale stuff in the uclibc config.
How shall your final BB manage UTF if you disable locale stuff in the
lib. Looks like you are building your BB the
I don't quite understand what you are suggesting.
Ah, I'm sorry, I hadn't realized you were not the OP, and I have
replied as if you were trying to bring up a system - but you are
just trying to shut it down.
Well a shutdown isn't really something I've mastered. I've always
considered it was
Don't forgot umount -fl which pretends to unmount now but actually does it
as soon as all files are closed.
Not sure right now if busybox supports it.
Sam
On 10 Aug 2014 22:51, Laurent Bercot ska-dietl...@skarnet.org wrote:
I don't quite understand what you are suggesting.
Ah, I'm sorry, I
On Sun, Aug 10, 2014 at 11:52 PM, Laurent Bercot said:
I don't understand why you would pivot_root to shutdown. Who
cares what your rootfs is, since the system isn't going to
live anyway ?
I'm sorry, I should have explained.
I work on the Live system for MX-14 Linux and antiX Linux. The
On Sun, Aug 10, 2014 at 11:12 PM, Harald Becker said:
How shall your final BB manage UTF if you disable locale stuff in the
lib.
I created a tr hack that gives the length of a unicode string even if
there is no unicode support. All I need is to get the length of
unicode strings in
Hi James,
a quick response ahead, for interest, have not looked into details of
your message. Have you ever tried:
export LANG=en_US.UTF-8
echo -n $* | wc -m
This shall count characters, not bytes (Works for me in 1.21.1). This
sed hack indeed failed on my try!
--
Harald
On Mon, Aug 11, 2014 at 04:41 AM, Harald Becker said:
export LANG=en_US.UTF-8
echo -n $* | wc -m
Yes! That works with both glibc and uclibc in the chroot and in
the initrd. Thank you!
I didn't know about the -m option to wc. I had ASSumed -c was
for counting characters. My bad.
IMO there
On Sun, Aug 10, 2014 at 01:24 PM, Steven Honeyman said:
I'd like a look at that script if you wouldn't mind? Just out of
curiosity more than anything, could come in handy one day!
I've attached a tarball that contains the script and nothing else.
I worked on it last night to make it more
27 matches
Mail list logo