forked from josch/mmdebstrap
coverage.sh: only consider non-POD parts for maximum line length check
This commit is contained in:
parent
534798dbd2
commit
0c990abc48
2 changed files with 3 additions and 5 deletions
|
@ -13,7 +13,7 @@ if [ "$ret" -ne 0 ]; then
|
|||
fi
|
||||
rm "$TMPFILE"
|
||||
|
||||
if [ $(wc -L < mmdebstrap) -gt 79 ]; then
|
||||
if [ $(sed -e '/^__END__$/,$d' mmdebstrap | wc --max-line-length) -gt 79 ]; then
|
||||
echo "exceeded maximum line length of 79 characters" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
@ -6346,8 +6346,7 @@ If you don't want this behaviour, you can override it by manually specifying a
|
|||
mirror in various different ways:
|
||||
|
||||
$ mmdebstrap stable stable-chroot.tar http://deb.debian.org/debian
|
||||
$ mmdebstrap stable stable-chroot.tar \
|
||||
"deb http://deb.debian.org/debian stable main"
|
||||
$ mmdebstrap stable stable-chroot.tar "deb http://deb.debian.org/debian stable main"
|
||||
$ mmdebstrap stable stable-chroot.tar /path/to/sources.list
|
||||
$ mmdebstrap stable stable-chroot.tar - < /path/to/sources.list
|
||||
|
||||
|
@ -6412,8 +6411,7 @@ Use as replacement for autopkgtest-build-qemu and vmdb2:
|
|||
|
||||
$ mmdebstrap --variant=important --include=linux-image-amd64 \
|
||||
--customize-hook='chroot "$1" passwd --delete root' \
|
||||
--customize-hook='chroot "$1" useradd --home-dir /home/user
|
||||
--create-home user' \
|
||||
--customize-hook='chroot "$1" useradd --home-dir /home/user --create-home user' \
|
||||
--customize-hook='chroot "$1" passwd --delete user' \
|
||||
--customize-hook='echo host > "$1/etc/hostname"' \
|
||||
--customize-hook='echo "127.0.0.1 localhost host" > "$1/etc/hosts"' \
|
||||
|
|
Loading…
Reference in a new issue