summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* utils/pb-console: Exit after running getty in detached stateJeremy Kerr2013-11-221-0/+1
| | | | | | ... otherwise we'll try and bring the UI up on the current tty too. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils/pb-console: reset after UI exitJeremy Kerr2013-11-141-0/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* discover: Change parsers to explicitly request configuration filesNeelesh Gupta2013-11-061-78/+25
| | | | | | | | | | | | | | | | | | | Add a new function parser_request_url() to read the data from configuration files present remotely. We deprecate iterate_parser_files() and download_config() functions along with the 'filenames' and 'method' members of the 'parser' structure so that individual parsers would now require to request the configuration files data from the parser code and doesn't necessarily export the list of configuration files. Add the support to handle incoming DHCP event, done by passing all the relevant environment variables of the udhcpc to the discover code. Also, update the pxe parser code to populate the list of configuration file names as per PXELINUX convention of fallback names using mac and ip addresses of the booting machine. Signed-off-by: Neelesh Gupta <neelegup@linux.vnet.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* discover/sysinfo: Add helper script to populate sysinfo identifiersJeremy Kerr2013-10-092-1/+11
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils/pb-udhcp: Don't add a new option on renewJeremy Kerr2013-10-091-1/+1
| | | | | | Otherwise we'll keep collecting new options every $lease_time period. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* pb-udhcpc: use plain kernel names for dhcp eventsJeremy Kerr2013-09-241-5/+5
| | | | | | No need to prefix with /net/ Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* pb-udhcpc: Fix string returned from resolve_urlJeremy Kerr2013-09-061-0/+1
| | | | | | In the 'as-is' case, we were echoing both URLs. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* pb-udhcp: Fix MAC-address-based configuration file locationJeremy Kerr2013-07-231-2/+2
| | | | | | | | We're currently requesting a colon-separated MAC address. Instead, we need it to be hypen-separated, and prefixed with the ethernet type ("01-"). Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* pb-udhcp: PXE fixesJeremy Kerr2013-07-231-5/+5
| | | | | | Fix a couple of bugs in the udhcp script. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* pb-console: Read /etc/environment and /etc/localeJeremy Kerr2013-07-231-0/+8
| | | | | | | Since we're starting from no environment on the consoles, allow specifying an initial environment. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils/hooks: Add sample update-dtb hook.Jeremy Kerr2013-06-242-1/+24
| | | | | | Provide an example for writing a pre-boot hook to update the dtb. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils/hooks: Add create-dtb hookJeremy Kerr2013-06-242-1/+13
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils: Add busybox reboot scriptJeremy Kerr2013-06-242-0/+4
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils/pb-console: use getty rather than execJeremy Kerr2013-05-201-31/+58
| | | | | | exec is a bit flaky for starting on consoles, so use getty instead. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils/pbconsole: Use here-document for usage textJeremy Kerr2013-05-201-6/+8
| | | | | | Allows for cleaner usage message in the source. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* util/pb-console: Packaging updatesGeoff Levand2013-05-191-2/+19
| | | | | | | In preparation for packaging add a man page, a help option, and some comments to the script. Signed-off-by: Geoff Levand <geoff@infradead.org>
* utils/Makefile: pb-console is dist_Jeremy Kerr2013-05-151-1/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils: Add pb-console utilJeremy Kerr2013-05-092-0/+50
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* pb-udhcpc: Look for more boot optionsJeremy Kerr2013-05-091-2/+82
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils/pb-udhcpc: Use command-line format of pb-eventJeremy Kerr2013-05-091-2/+5
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* pb-event: move send code to a separate functionJeremy Kerr2013-05-091-30/+36
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* utils/pb-event: handle event data on command lineJeremy Kerr2013-05-091-24/+76
| | | | | | | It'd be nice to avoid using printf just for the \0 characters, so allow parsing events from the command line. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Makefiles: remove -I$(includedir)Jeremy Kerr2013-05-071-1/+0
| | | | | | | | | | | Currently, we include the system include dir in some of our makefiles; this is causing build problems when cross-compiling, as the system include dir may not contain files for the host. The compiler should be searing in the proper system include dir, so just remove the redundant -I. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* discover: Remove unused 99-petitboot.rules fileGeoff Levand2013-05-032-3/+0
| | | | | | | With the switch of the discover server to use the libudev monitor support a rules file is no longer needed. Signed-off-by: Geoff Levand <geoff@infradead.org>
* pb-udhcpc: Fix generation of TFTP URLsJeremy Kerr2013-04-101-1/+1
| | | | | | | | | | | | DHCP boot-file parameters may not contain a preceeding slash. In this case, the current udhcp script will not form a correct URL. This change adds the slash unconditionally; in the case that the pathname already has a preceeding slash, the URL parser will handle this correctly. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Geoff Levand <geoff@infradead.org>
* Convert echo to printf in scriptsGeoff Levand2012-10-162-6/+6
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* Add logrotate.confGeoff Levand2012-03-092-1/+9
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* Log file cleanupsGeoff Levand2012-03-081-1/+1
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* Move installed programs from bin to sbinGeoff Levand2012-02-241-2/+2
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* Fixups for 'make dist'Geoff Levand2012-02-121-1/+1
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* Include util files in 'make install'Geoff Levand2012-02-121-0/+6
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* Add new file kboot.conf.sampleGeoff Levand2012-02-121-0/+20
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* Rename udhcpc to pb-udhcpcGeoff Levand2012-02-121-0/+0
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* Convert build to use automakeGeoff Levand2012-02-121-0/+28
| | | | Signed-off-by: Geoff Levand <geoff@infradead.org>
* pb-event: Add help messageGeoff Levand2011-10-291-4/+33
|
* Add udhcpc utility scriptGeoff Levand2009-06-301-0/+38
| | | | | | | | | | Add a udhcpc utility script. udhcpc can be configured to run a specified script when there is a change in the dhcp configuration. This udhcpc utility script will write a petitboot netboot message to the petitboot user event socket. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add pb-event helper utilityGeoff Levand2009-06-301-0/+95
| | | | | | | | | Add a new helper utility pb_event. pb_event reads data on stdin and writes it to the petitboot event socket. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Fix udev ruleGeoff Levand2009-03-301-1/+1
| | | | | | | Change 'RUN=' to 'RUN+=' to let other block rules run. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Update udev rule for socketGeoff Levand2009-02-011-1/+1
| | | | | | | Update the udev petitboot rule to use the petitboot discover socket Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Remove unneded kboot patchGeoff Levand2008-12-071-343/+0
| | | | | | | Remove the unneeded Ubuntu ps3-kboot support patch. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Rename udev-helper to petitboot-udev-helperJeremy Kerr2008-01-081-1/+1
| | | | | | | .. so that the installed binary looks more like a component of petitboot, not udev. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Fix path in udev rule exampleJeremy Kerr2007-12-211-1/+1
| | | | | | | The default prefix is /usr, so the correct path to the udev-helper script is /usr/sbin. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Update ps3-kboot patchJeremy Kerr2007-09-121-7/+7
| | | | | | | Ubuntu's ps3-kboot has been updated, so update our patch to match, and fix the missing -. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add ps3 controller supportJeremy Kerr2007-08-231-2/+38
| | | | | | | Using the new twin joystick API, map some of the sixaxis controller events to key events. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Resolve device paths in kernel and initrd locations.Jeremy Kerr2007-06-271-2/+2
| | | | | | | | Instead of mounting in random locations, create a fixed mapping between device and mountpoint. This allows the parsers to refer to files outside the current partition. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Use --disable-x11 for configuring libtwin in kboot.Jeremy Kerr2007-06-271-1/+1
| | | | Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Add petitboot utilitiesJeremy Kerr2007-04-052-0/+309
A udev script and a patch to feisty's ps3-kboot package. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
OpenPOWER on IntegriCloud