I'm using the preseeding feature in order to shape a custom Debian 10 x64 system. Everything is happening well, except that during the late_command step, I'm running a shell script to configure and deploy miscellaneous things and I would like to be able to access the physical audio interfaces.
Usually, I'm doing that using pacmd list-sinks
and then I can easily access the different audio cards names. But in this case, using chroot /target/ sudo -u device pacmd list-sinks
, the only thing I see is a dummy interface named audio_null
:
I also precise that as soon as the system reboots after the installation, I can access quite normally the physical audio interface.
(For information, I need to access the physical interface name to configure the default interface within Pulseaudio default profile, since the root filesystem is set to read-only right after the installation, this is the ultimate time to do it once for all).
I suppose that it's an expected behavior since all modules are not required during an installation and then some needed services/configuration steps might be skipped.
So what I have tried so far :
- Manually (re)load some modules that sounded pertinent :
chroot /target/ sudo modprobe soundcore
- Reloading PulseAudio service (which was apparently not started yet)
- Listing from and outside the target system (
chroot /target/ pacmd list-sinks
,pacmd list-sinks
) To make the previous commands work, I needed to relaunch Pulsechroot /target/ sudo -u device pulseaudio --start
without which I faced an error messageNo PulseAudio daemon running or not running as session daemon
None of the previous attempts succeeded and I'm running out of ideas. I probably missed/misunderstood an obvious concept and an external point of view would be welcomed.
Even if it's not my final purpose, it might be easier to resume the problem to a wider one: How to play a sound during the late_command
step of a Debian installation.
PS: For what it's worth, I'm currently deploying to a Virtual Machine, using VmWare, and a physical sound card bridged to it.