]> git.ozlabs.org Git - petitboot/commit
Extend the "add url" function to allow file:// URLs
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 4 May 2016 05:06:45 +0000 (15:06 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 24 May 2016 01:08:15 +0000 (11:08 +1000)
commited8a3ad086e56fa40c72c531b3f563e35a7c0753
tree1010710412f4fb46e0dd278e1d98f8dd358e1c13
parent27863350496534c1bdd6a2d48661f8973aed0945
Extend the "add url" function to allow file:// URLs

This allows URLs of the form file:///path/to/local/file.conf to be used
in nc-add-url, in order to access configuration files relative
to the root directory. This is primarily a debugging tool aimed at
developers rather than an expected use case.

The DEVICE_TYPE_ANY enum is used in this case to represent that a
resulting boot option is not associated with any device in the
traditional sense, and in the UI is represented as a "Custom Local
Option".

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/device-handler.c
ui/ncurses/nc-menu.c