Boot from hammer partition using vkernel
Antonio Huete Jiménez
tuxillo at quantumachine.net
Tue Sep 6 07:54:55 PDT 2016
Hi Aleksej,
Yes, that's the way.
Best regards,
Antonio Huete
Aleksej Lebedev <root at zta.lk> escribió:
> On , Aleksej Lebedev wrote:
>> Hi, everyone!
>>
>> I wander what options do I specify if I want to run vkernel that boots
>> from a hammer partition?
>> By default it boots from ufs:vkd0s0a, so I'm trying to pass
>> vfs.root.mountfrom=hammer:vkd0s0a using option -e,
>> but colon is understood by vkernel as a delimiter for variable names.
>>
>> So when I run
>> /var/vkernel/4.4/boot/kernel/kernel -m 2g -r /vhost/001.img -I
>> /var/run/vknet -d -p /home/a/tmp/vhost001.pid -i
>> /home/a/tmp/vhost001.memimg -e vfs.root.mountfrom=hammer:vkd0s0a
>>
>> I get "Mounting root from hammer" message during the boot, which is
>> understandable.
>> I tried to add backslash before the colon, but it didn't help.
>>
>> In there a way to have a colon in the kernel variable value? Or maybe
>> there is another way to boot from a hammer partition?
>
> Just tried double quotes and it worked:
>
> /var/vkernel/4.4/boot/kernel/kernel -m 2g -r /vhost/001.img -I
> /var/run/vknet -d -p /home/a/tmp/vhost001.pid -i
> /home/a/tmp/vhost001.memimg -e vfs.root.mountfrom='"hammer:vkd0s0a"'
>
> Still, is it the right way to make vkernel mount root from a hammer
> partition?
>
> --
> Aleksej Lebedev
More information about the Users
mailing list