Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting dslist=none in the kernel command line does not ignore the datasources #106

Open
rgl opened this issue Jun 17, 2023 · 1 comment

Comments

@rgl
Copy link

rgl commented Jun 17, 2023

setting dslist=none in the kernel command line does not ignore the datasources as documented at:

Useful value is `dslist=none` which will use the 'none' datasource.

it still loads the defaults ones.

@smoser
Copy link
Member

smoser commented Aug 6, 2024

could you give an example?

i think it is probably fixed with 198e1f7 .

But even with 0.6.2, It does ignore the other datasources

$ wget https://github.com/cirros-dev/cirros/releases/download/0.6.2/cirros-0.6.2-x86_64-initramfs -O initrd
$ wget wget https://github.com/cirros-dev/cirros/releases/download/0.6.2/cirros-0.6.2-x86_64-kernel -O kernel
$ qemu-system-x86_64 -nographic -m 512 -kernel ./kernel -initrd ./initrd  -append "dslist=none console=ttyS0"
[    0.000000] Linux version 5.15.0-71-generic (buildd@lcy02-amd64-044) (gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0, GNU ld (GNU Bi)
[    0.000000] Command line: dslist=none console=ttyS0
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Hygon HygonGenuine
[    0.000000]   Centaur CentaurHauls
[    0.000000]   zhaoxin   Shanghai  
[    0.000000] x86/fpu: x87 FPU will use FXSAVE
...
info: initramfs: up at 2.08
currently loaded modules: 8021q 8139cp 8390 9pnet 9pnet_virtio ahci cec drm drm_kms_helper e1000 e1000e failover fb_sys_fops garp hi 
info: initramfs did not find root, running as ramdisk
info: /etc/init.d/rc.sysinit: up at 3.78
info: container: none
Starting syslogd: OK
currently loaded modules: 8021q 8139cp 8390 9pnet 9pnet_virtio ahci cec drm drm_kms_helper e1000 e1000e failover fb_sys_fops garp hi 
Saving random seed: [    4.226256] random: dd: uninitialized urandom read (32 bytes read)
OK
Starting acpid: OK
[    4.408475] random: mktemp: uninitialized urandom read (6 bytes read)
/lib/cirros/ds/none: line 23: can't create /tmp/cirros-ds.pI7XT3/none/data/instance-id: nonexistent directory
/lib/cirros/ds/none: line 24: can't create /tmp/cirros-ds.pI7XT3/none/result: nonexistent directory
none-local: returned error
Starting network: dhcpcd-9.4.1 starting
[    4.671014] random: dhcpcd: uninitialized urandom read (112 bytes read)
forked to background, child pid 227
no interfaces have a carrier
OK
failed to get instance-id of datasource
Top of dropbear init script
Starting dropbear sshd: failed to get instance-id of datasource
[    7.205978] random: crng init done
[    7.206144] random: 1 urandom warning(s) missed due to ratelimiting
OK
=== system information ===
Platform: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996)
Container: none
Arch: x86_64
CPU(s): 1 @ na MHz
Cores/Sockets/Threads: 1/1/1
Virt-type: AMD-V
RAM Size: 466MB
Disks:
NAME MAJ:MIN       SIZE LABEL MOUNTPOINT
sr0   11:0   1073741312       
=== sshd host keys ===
-----BEGIN SSH HOST KEY KEYS-----
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCVAeWNrkDQ8oMv1ZfqOR8qCTDqoE+8P8UmjjoE+fi0GZTrFzYMCUVUux17l8HbNC7XWsrEtHSKxOdE6DTL+4Xa+m1fD8NNs
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMJkVNHV2QP9psMzoQ+xNdNo7vtzY9AJUSJ1HXq6dGjFOzcF7PvN+aPyFG8es
-----END SSH HOST KEY KEYS-----
=== network info ===
if-info: lo,up,127.0.0.1,8,,
if-info: eth0,up,,8,fe80::5054:ff:fe12:3456/64,
ip-route6:fe80::/64 dev eth0  metric 256 
ip-route6:fec0::/64 dev eth0  metric 1002 
ip-route6:default via fe80::2 dev eth0  metric 1002 
ip-route6:multicast ff00::/8 dev eth0  metric 256 
=== datasource: None None ===
=== cirros: current=0.6.2 uptime=10.29 ===
..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants