From: Alexander Smirnov <asmirnov@ilbers.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH 0/8] Assorted patches
Date: Mon, 19 Feb 2018 17:19:12 +0300 [thread overview]
Message-ID: <2f314bf2-1270-4f85-00c0-3d76cd36157e@ilbers.de> (raw)
In-Reply-To: <0d516e09-eaf5-37d1-c412-da29b9f71013@siemens.com>
On 02/19/2018 05:08 PM, Jan Kiszka wrote:
> On 2018-02-19 14:56, Alexander Smirnov wrote:
>> On 02/16/2018 11:52 AM, Jan Kiszka wrote:
>>> Flush of my remaining queue:
>>> - improvements for mount and umount
>>> - arm64 target
>>> - copyright and credit enhancements
>>>
>>
>> CI failed on wheezy, log is attached. I saw the same problem when mount
>> sys/dev via '--bind'.
>>
>
> Is that the error?
>
>> Setting up initscripts (2.88dsf-41+deb7u1) ...
>> /bin/rm: cannot remove `/dev/shm': Device or resource busy
>
> Hmm, seems someone would like to wipe /dev content here. That's a
> warning sign that we definitely should not expose a host /dev to the chroot.
>
> What else can we do here? Copy /dev over?
>
The issue here is in following:
- initstripts.postinst performs check whether we are under chroot
- then it performs lots of checks:
8<--
# Note trailing slash for mountpoint dir needed to
# resolve mountpoints where the dir is a symlink.
DEV=d
DEVSHM=d
RUN=d
RUNSHM=d
if mountpoint -q /dev/; then
DEV=m
fi
if mountpoint -q /dev/shm/; then
DEVSHM=m
fi
if [ -L /dev/shm ]; then
DEVSHM=l
fi
if mountpoint -q /run/; then
RUN=m
fi
if mountpoint -q /run/shm/; then
RUNSHM=m
fi
if [ -L /run/shm ]; then
RUNSHM=l
fi
RUNSTATE="${DEV}${DEVSHM}${RUN}${RUNSHM}"
RUNACTION="NONE"
8<--
- then according to this is performs complex case:
8<--
case "$RUNSTATE" in
8<--
So changing of mount way in Isar, somehow changes the flow of this
script, so it tries to re-create /dev/shm. That's all I know about this
issue.
Alex
next prev parent reply other threads:[~2018-02-19 14:19 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-16 8:52 Jan Kiszka
2018-02-16 8:52 ` [PATCH 1/8] Mount devtmpfs read-only into chroot Jan Kiszka
2018-02-19 10:09 ` Consolidate mounting in tasks (was Re: [PATCH 1/8] Mount devtmpfs read-only into chroot) Claudius Heine
2018-02-20 6:38 ` [PATCH 1/8] Mount devtmpfs read-only into chroot Alexander Smirnov
2018-02-20 7:02 ` Alexander Smirnov
2018-02-20 7:03 ` Jan Kiszka
2018-02-20 8:18 ` Claudius Heine
2018-02-16 8:52 ` [PATCH 2/8] isar-events: Wait for failing umounts Jan Kiszka
2018-02-19 9:45 ` Alexander Smirnov
2018-02-19 9:48 ` Jan Kiszka
2018-02-19 10:03 ` Alexander Smirnov
2018-02-19 11:10 ` Jan Kiszka
2018-02-16 8:52 ` [PATCH 3/8] isar-events: Do not match on distro and arch Jan Kiszka
2018-02-19 9:54 ` Alexander Smirnov
2018-02-19 11:08 ` Jan Kiszka
2018-02-16 8:52 ` [PATCH 4/8] Add Debian arm64 support to the core Jan Kiszka
2018-02-16 8:52 ` [PATCH 5/8] Add qemuarm64-stretch multiconfig Jan Kiszka
2018-02-19 10:23 ` Alexander Smirnov
2018-02-19 11:15 ` Jan Kiszka
2018-02-19 12:19 ` Alexander Smirnov
2018-02-19 12:36 ` Jan Kiszka
2018-02-16 8:52 ` [PATCH 6/8] Add qemuarm64-stretch to CI Jan Kiszka
2018-02-16 8:52 ` [PATCH 7/8] build-kernel.sh: Add copyright header Jan Kiszka
2018-02-16 8:52 ` [PATCH 8/8] Enhance credits Jan Kiszka
2018-02-19 13:56 ` [PATCH 0/8] Assorted patches Alexander Smirnov
2018-02-19 14:08 ` Jan Kiszka
2018-02-19 14:19 ` Alexander Smirnov [this message]
2018-02-20 11:19 ` Alexander Smirnov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2f314bf2-1270-4f85-00c0-3d76cd36157e@ilbers.de \
--to=asmirnov@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox