Setting block.no_part_scan=no on sys-usb’s command line does not work

11 views
Skip to first unread message

Demi M. Obenour

unread,
Dec 25, 2020, 9:13:48 PM12/25/20
to qubes...@googlegroups.com
I am trying to disable automatic partition scanning in sys-usb,
and tried including block.no_part_scan=no in sys-usb’s kernelopts.
However, it had no effect. `block.no_part_scan=0` also doesn’t work.

Did I make a mistake in the command line?

Sincerely,

Demi

OpenPGP_signature

unman

unread,
Dec 25, 2020, 10:30:40 PM12/25/20
to qubes...@googlegroups.com
On Fri, Dec 25, 2020 at 09:13:24PM -0500, Demi M. Obenour wrote:
> I am trying to disable automatic partition scanning in sys-usb,
> and tried including block.no_part_scan=no in sys-usb???s kernelopts.
> However, it had no effect. `block.no_part_scan=0` also doesn???t work.
>
> Did I make a mistake in the command line?
>
> Sincerely,
>
> Demi
>

no_part_scan=Y ?
test by writing to /sys/module/block/parameters/no_part_scan

Rusty Bird

unread,
Dec 26, 2020, 4:48:12 AM12/26/20
to qubes...@googlegroups.com, Demi M. Obenour, unman
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

unman:
> On Fri, Dec 25, 2020 at 09:13:24PM -0500, Demi M. Obenour wrote:
> > I am trying to disable automatic partition scanning in sys-usb,
> > and tried including block.no_part_scan=no in sys-usb’s kernelopts.
> > However, it had no effect. `block.no_part_scan=0` also doesn’t work.

> no_part_scan=Y ?
> test by writing to /sys/module/block/parameters/no_part_scan

Yes it's Y, but with 'block.no_part_scan=Y' in kernelopts, the VM will
fail to boot because now it can't find /dev/xvda3 (root) or /dev/xvdc1
(swap). So this parameter is intended to be set by writing Y to /sys
after the VM has booted.

Block device content is also parsed by udev scans for filesystems etc.
In Split dm-crypt, those scans are disabled by installing a udev rules
file which piggybacks on the kernel parameter:

https://github.com/rustybird/qubes-split-dm-crypt/blob/master/vm/rules.d/00-blockdev-parsing-disabled.rules

Rusty
-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEhLWbz8YrEp/hsG0ERp149HqvKt8FAl/nBrxfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDg0
QjU5QkNGQzYyQjEyOUZFMUIwNkQwNDQ2OUQ3OEY0N0FBRjJBREYACgkQRp149Hqv
Kt/Ubw//Z+qkhK4te1/qE2DXo7DHw671ht3vP/4rbW3P2Y5pjcZHMYAZPgJ6YRpc
HDAE/I77qAoPX9+Luvy0+poIM0gKqcmVq6cEEmKSfnXEGwezCTvltvvpjTu8k4Nb
H6nVUMBxZ6uiZCDDEtd0K6mMcQncdEiaSjtPGAkmIgL91gygCgbe+eHOOxPIEAFu
vAqfpC9DUBzCHeG1r9ldg2h5VSTi9c5tZpaHqaJxDUEc2rqs5gHxDGRL5pEnJ6jn
H22KGztCIh4y90xdg9LHY2Q2kPeqI3X+a12xiJ5JXsGM7Hzt+9WsFGTOU61BvGpz
3miCJLuyAP2/OEWFh9JxfwepgXBW5PnWLi5+fkY9gR2mzLzXVro4ojmy/e6CYsq6
SuZvhWrdPDL1210POu0dygRvtwcUjyiueOjIl52m4TStX7AQMyF5vWiElkGs2io9
F/4855Q11lBehwxMKz2k0/KyCyWn6Z9UnbcvmMOwiQZGvQCAQ0WS3oKkWPCqIo8u
07yVEI2/r72xN1tawdIkTP7tUnemV6RIBhMJuoFRaO2w1JdXwJntf77ALmF/n2R1
17/3iyZcs9V0mTK7zZ7Icv6NUtJgTh4CH4LTURfEG1xrKHxs30PB0E8Q3LLFSXkh
IcDZ4y7QseZ/xD+fb+bDBl9DQyfOC4mEz5utWV4KU3iY3LPcoAk=
=SPOM
-----END PGP SIGNATURE-----


Reply all
Reply to author
Forward
0 new messages