Bug#751394: busybox: please provide a way to disable buffering in STDOUT
Package: busybox Version: 1:1.22.0-6 Severity: wishlist Dear Maintainer, In udebs, it is common to redirect the standard output of a command to a fifo, and use that to display progress bars in the installer. trap 'kill $pid' EXIT /path/to/command >"$fifo" & while read -u 7 n; do db_progress SET $n done 7< "$fifo" rm -f "$fifo" trap - EXIT However, if the command buffers its standard output, which for instance is what cryptsetup(8) does, and/or if the standard output needs to be piped through sed(1) (which also buffers its standard streams), it's hard to make sense of the progress bar, which suddenly jumps from 0% to 100% while nothing happens in the meantime. cryptsetup -q --key-file="$keyfile" luksFormat "$device" | \ sed -nr 's/^Generating key \(([0-9]+)% done\)\.$/\1/p' > "$fifo" & It'd be convenient to provide a way to disable buffering in STDOUT, in the fashion of stdbuf(1) from GNU coreutils [1]. If the full blown stdbuf(1) is overkill, it might still be desirable to add a strip down version disabling buffering only, as found in [2]: :/lib/stdbuf.c #include __attribute__ ((constructor)) void QLqxcKVd20zweBii () { setvbuf (stdout, NULL, _IOLBF, 0); } $ gcc -Wall -x c -s /lib/stdbuf.c -fPIC -shared -o /lib/stdbuf.so :/bin/stdbuf #!/bin/sh LD_PRELOAD=/lib/stdbuf.so "$@" Then buffering of STDOUT could be disabled as follows: stdbuf cryptsetup -q --key-file="$keyfile" luksFormat "$device" | \ stdbuf sed -nr 's/^Generating key \(([0-9]+)% done\)\.$/\1/p' > "$fifo" & Thanks! Cheers, -- Guilhem. [1] http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/stdbuf.c [2] https://lists.gnu.org/archive/html/bug-coreutils/2008-11/msg00138.html -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable'), (800, 'testing'), (700, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 3.14-1-686-pae (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages busybox depends on: ii libc6 2.19-1 busybox recommends no packages. busybox suggests no packages. -- no debconf information signature.asc Description: Digital signature
Bug#751353: flash-kernel: Add support for TI AM335x BeagleBone (black).
Next upload of u-boot to Debian will support bootscripts, so should work with flash-kernel once this is applied. Minor change to the patch, to use ${bootpart} instead of ${mmcdev}:${mmcpart}, which is more consistant with u-boot upstream. ${mmcpart} will also be dropped from the Debian u-boot package in the next upload. Or could drop ${partition} entirely and just use ${bootpart} directly. diff --git a/bootscript/bootscr.beaglebone b/bootscript/bootscr.beaglebone new file mode 100644 index 000..ab35a09 --- /dev/null +++ b/bootscript/bootscr.beaglebone @@ -0,0 +1,17 @@ +# boot script for BeagleBone + +setenv device mmc +setenv partition ${bootpart} +setenv bootargs '@@LINUX_KERNEL_CMDLINE@@' + +image_locations='/boot/ /' +kvers='@@KERNEL_VERSION@@' + +for pathprefix in ${image_locations} +do + load ${device} ${partition} ${loadaddr} ${pathprefix}vmlinuz-${kvers} \ + && load ${device} ${partition} ${fdtaddr} ${pathprefix}dtb-${kvers} \ + && load ${device} ${partition} ${rdaddr} ${pathprefix}initrd.img-${kvers} \ + && echo "Booting Debian ${kvers} from ${device} ${partition}..." \ + && bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr} +done diff --git a/db/all.db b/db/all.db index ec685c2..3298328 100644 --- a/db/all.db +++ b/db/all.db @@ -527,6 +527,13 @@ Mtd-Kernel: kernel Mtd-Initrd: ramdisk Bootloader-Sets-Incorrect-Root: yes +Machine: TI AM335x BeagleBone +Kernel-Flavors: armmp +DTB-Id: am335x-boneblack.dtb +Boot-Script-Path: /boot/boot.scr +U-Boot-Script-Name: bootscr.beaglebone +Required-Packages: u-boot-tools + Machine: Toshiba AC100 / Dynabook AZ Method: android Android-Boot-Device: /dev/mmcblk0 Thanks! live well, vagrant signature.asc Description: Digital signature
Processing of cdrom-detect_1.47_i386.changes
cdrom-detect_1.47_i386.changes uploaded successfully to ftp-master.debian.org along with the files: cdrom-detect_1.47_all.udeb cdrom-detect_1.47.dsc cdrom-detect_1.47.tar.xz Greetings, Your Debian queue daemon (running on host ravel.debian.org) -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/e1wvjs5-0004up...@ravel.debian.org
Processing of cdrom-detect_1.47_i386.changes
cdrom-detect_1.47_i386.changes uploaded successfully to localhost along with the files: cdrom-detect_1.47_all.udeb cdrom-detect_1.47.dsc cdrom-detect_1.47.tar.xz Greetings, Your Debian queue daemon (running on host franck.debian.org) -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/e1wvjvz-000263...@franck.debian.org
cdrom-detect_1.47_i386.changes ACCEPTED into unstable
Accepted: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Format: 1.8 Date: Fri, 13 Jun 2014 07:11:26 +0200 Source: cdrom-detect Binary: cdrom-detect Architecture: source all Version: 1.47 Distribution: unstable Urgency: low Maintainer: Debian Install System Team Changed-By: Christian Perrier Description: cdrom-detect - Detect CDROM devices and mount the CD (udeb) Changes: cdrom-detect (1.47) unstable; urgency=low . [ Updated translations ] * Bosnian (bs.po) by Amila Valjevčić * Hungarian (hu.po) by Judit Gyimesi * Italian (it.po) by Milo Casagrande Checksums-Sha1: 0cfa1da2c698806e38efc0e36f7049c984b2840b 1659 cdrom-detect_1.47.dsc 7684e82e05c684532577639e6a224b528f3b43e4 112668 cdrom-detect_1.47.tar.xz f196b2dbf8895b74ae425b31bb67c09e34737fdd 124950 cdrom-detect_1.47_all.udeb Checksums-Sha256: ae780b31304f5ee4294c430ace5435a9d0db9597e9d80e832b6fb76336a4157c 1659 cdrom-detect_1.47.dsc af4dc66e56f696900cf513251f596398a841fa2a32c41480fc8bd752b306fed1 112668 cdrom-detect_1.47.tar.xz 719b9d83b055a17c4eebffdc5da71c8297d629460f8e0fd8a92c369fe1ad3a76 124950 cdrom-detect_1.47_all.udeb Files: 9865776e2e342bd528c033a1975d495f 124950 debian-installer optional cdrom-detect_1.47_all.udeb 252cf488468cd873041315338041a92d 1659 debian-installer optional cdrom-detect_1.47.dsc 342ddf55176948f2b0d0101305802d8e 112668 debian-installer optional cdrom-detect_1.47.tar.xz -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iQIVAwUBU5qIcocvcCxNbiWoAQLGKw/9GUZiFa+lubY0pFd3vtwpvCO2olAON1yH H4hSmHM0d07vesUZZOxTbi1jfSP+2pp0W7kxcdyUTppUZ/D6m5xlubesmpT7p2yH /gBeklr7SDsiHFg+pXCLzhvsrk2N6Rp8BHyjt7Pu2gmvTDEivS46fFNyesJS8yTq CPC5LckD8jlP12JNoKiX5Iv2JqlZaX/+7lAIRJF/ZKBCCG9R98q5JoJwYDdd/Q6h UFozBhVzQMZLfmAcQgz3cxE2eNcl7pcpJCnG/3FUh0oP5axnpuI8epHKfeJ5R9WK 7qHV5WrXRKjQAPJn3qIaabwJeBtJskho510/rcjn/Y8Vc6l2q1JTHgFolBDObc5x a8Q+0vTUAKPQY8TNxbQrGhtDYqkf9vPsA9S+Pa27fjk043t/dn6ffmtQ/auOr7d4 CZUAF6MjWfgI8VmqvqeOmyjkyDWnePPWvJnJKQ84B/zCPPGqRBxC/8Uc7MDEF6Rr rxwgz0KjKmK5PodEpWLxyN6x4OW+pvR0vg81seLmnZbMTiQKZE0ZbOBS1QFIXs7O znW5XZiwaVZlAoJYbonFNPoLLw6tmGCACiPORZuzaZPjVr0Xy21jBJeDsWnctjrN b4rIprl9PJKc1h6ZPO8QFnDjwMOsV24o5Vv0wGuw1Cznjf5/br3DmQB1/UPyPLc/ 3xxnusPq/Yk= =vO2a -END PGP SIGNATURE- Thank you for your contribution to Debian. -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/e1wvk7w-0003ad...@franck.debian.org