Bug#871835: auto detect grep options
Here's the patch that automatically detects if grep supports the Perl regex. 0008-automatic-detect-if-grep-support-perl-regex.patch Description: Binary data -- regards Thomas
Bug#871835: auto detect grep options
On Fri, 2017-09-22 at 12:56 +0200, Thomas Lange wrote: > Here's the patch that automatically detects if grep supports the Perl > regex. [...] > + set +e You don't need to turn off errexit if you test the result of a command. > + if grep -q --perl-regexp . /dev/null >/dev/null 2>&1; then > + gropt=-E > +else > + gropt=-P > + fi [...] This seems to be the wrong way round. Besides which, if we check for --perl-regexp, then we ought to pass that and not assume -P means the same thing. Ben. -- Ben Hutchings Horngren's Observation: Among economists, the real world is often a special case. signature.asc Description: This is a digitally signed message part
Bug#875508: fixed in tasksel 3.40
I believe that the package name is not "mispell-sq" but "myspell-sq". signature.asc Description: OpenPGP digital signature
image created by debootstrap does not work
Hi all, The image created by debootstrap does not work in the qemu I use the following script to generate one image: IMG=qemu-stretch.img DIR=mount-point.dir #qemu-img create -f qcow2 $IMG 5G qemu-img create $IMG 5G sudo mkfs.ext4 $IMG mkdir $DIR sudo mount -o loop $IMG $DIR sudo debootstrap --arch amd64 stretch $DIR sudo umount $DIR rmdir $DIR The commented line in the above script will get error when you create image by "qcow2" format. Then I use the following command to run this image: qemu-system-x86_64 -kernel /boot/vmlinuz-4.12.0-1-amd64 -hda qemu-stretch.img -append "root=/dev/sda1 single" However, the result shows that "VFS: unable to mount root fs". I learn the method from the following website: https://www.collabora.com/news-and-blog/blog/2017/01/16/setting-up-qemu-kvm-for-kernel-development/ By the way, I use Debian Testing as my host operating system. P.S. I don't subscribe debian-root mailing list, please cc to me if you reply in the debian-root mailing list. -- My best regards to you. No System Is Safe! Dongliang Mu
Re: image created by debootstrap does not work
On Fri, 2017-09-22 at 19:07 +, 慕 冬亮 wrote: > Hi all, > > The image created by debootstrap does not work in the qemu [...] debootstrap doesn't create images, your script does - so that's where the bug is. Rather than trying to fix your script, why not try vmdebootstrap which is designed for exactly this purpose? Ben. -- Ben Hutchings Horngren's Observation: Among economists, the real world is often a special case. signature.asc Description: This is a digitally signed message part