> 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.
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: