]>
rtime.felk.cvut.cz Git - novaboot.git/log
Michal Sojka [Mon, 28 Aug 2017 19:21:59 +0000 (21:21 +0200)]
Properly terminate remote command even when it ignores SIGHUP
Michal Sojka [Sun, 27 Aug 2017 20:38:05 +0000 (22:38 +0200)]
Fix --iprelay-cmd regression
Michal Sojka [Sun, 27 Aug 2017 19:45:12 +0000 (21:45 +0200)]
Simplify ssh ctl path
Now, when we have novaboot PID in the file name, it is not necessary to
have target user, host and port there as well.
Michal Sojka [Sun, 27 Aug 2017 19:36:39 +0000 (21:36 +0200)]
Change reset_cmd to array
See previous commit for details.
Michal Sojka [Sun, 27 Aug 2017 19:20:15 +0000 (21:20 +0200)]
Run --ssh's console command without subshell
This requires either not putting shell special characters in $remote_cmd,
which cannot be easily ensured, because some parts are given by a user,
or turning the remote command into array. See exec in perlfun(1).
Michal Sojka [Sun, 27 Aug 2017 19:31:05 +0000 (21:31 +0200)]
Rework system_verbose() to accept string or array, similarly as system() does
Michal Sojka [Sat, 26 Aug 2017 22:30:44 +0000 (00:30 +0200)]
debian: Fix typo
Michal Sojka [Sat, 26 Aug 2017 22:30:00 +0000 (00:30 +0200)]
Do not share ssh connections across novaboot processes
Without this, when two novaboot instances were run by the same user on the
same host, killing the first one caused disconnection of the other one.
Michal Sojka [Sat, 26 Aug 2017 22:05:06 +0000 (00:05 +0200)]
Update changelog for
20170826 release
Michal Sojka [Sat, 26 Aug 2017 21:49:03 +0000 (23:49 +0200)]
server: Explicitly configure parser for remote options
It is important that we parse with 'no_pass_through'. It detects potential
security attacks.
Michal Sojka [Sat, 26 Aug 2017 20:09:31 +0000 (22:09 +0200)]
server: Fix config file template
Michal Sojka [Sat, 26 Aug 2017 20:09:11 +0000 (22:09 +0200)]
Fix derivation of prefix from --ssh
Michal Sojka [Sat, 26 Aug 2017 14:45:33 +0000 (16:45 +0200)]
server: Fix quoting of commands from config file
Michal Sojka [Sat, 26 Aug 2017 12:36:25 +0000 (14:36 +0200)]
server: Admin can get shell access
Michal Sojka [Sat, 26 Aug 2017 10:36:41 +0000 (12:36 +0200)]
server: Use flock option --no-fork only when it is available
It was introduced in util-linux 2.29.
Michal Sojka [Sat, 26 Aug 2017 09:41:40 +0000 (11:41 +0200)]
server: Give proper group to created .ssh files
Michal Sojka [Sat, 26 Aug 2017 09:41:08 +0000 (11:41 +0200)]
server: Use $HOME rather than $XDG_RUNTIME_DIR
When novaboot shell is run as a systemd service XDG_RUNTIME_DIR is not
defined.
Michal Sojka [Sat, 26 Aug 2017 09:40:04 +0000 (11:40 +0200)]
tests: Fix SSH key setup
Michal Sojka [Sat, 26 Aug 2017 06:28:39 +0000 (08:28 +0200)]
debian: Initial packaging of novaboot-server
Michal Sojka [Sat, 26 Aug 2017 06:24:42 +0000 (08:24 +0200)]
Fix and extend --ssh documentation
Michal Sojka [Fri, 25 Aug 2017 20:01:29 +0000 (22:01 +0200)]
server: Update .gitignore
Michal Sojka [Fri, 25 Aug 2017 19:51:23 +0000 (21:51 +0200)]
server: Add adduser-novaboot script
Michal Sojka [Fri, 25 Aug 2017 20:00:30 +0000 (22:00 +0200)]
server: Give configuration variables more descriptive names
Michal Sojka [Fri, 25 Aug 2017 19:50:28 +0000 (21:50 +0200)]
Move systemd files from contrib/ to server/
Also perform small modifications.
Michal Sojka [Fri, 25 Aug 2017 16:21:27 +0000 (18:21 +0200)]
server: Implement add-key command
Michal Sojka [Fri, 25 Aug 2017 15:17:25 +0000 (17:17 +0200)]
Add more tests for remote config
Michal Sojka [Fri, 25 Aug 2017 15:10:46 +0000 (17:10 +0200)]
Implement reading of configuration from remote server
Only "safe" configuration values are allowed to be sent by the server.
Michal Sojka [Fri, 25 Aug 2017 09:55:31 +0000 (11:55 +0200)]
Move handle_novaboot_server() to other place
In next commits, we will want to refer to %opt_spec variable so we need
to move the function below the definition of that variable to avoid
warnings.
Michal Sojka [Fri, 25 Aug 2017 06:16:14 +0000 (08:16 +0200)]
Add initial implementation of --ssh option to connect to novaboot-shell
Michal Sojka [Fri, 25 Aug 2017 05:54:32 +0000 (07:54 +0200)]
shell: Fix/extend rsync handling
Michal Sojka [Fri, 25 Aug 2017 05:54:01 +0000 (07:54 +0200)]
shell: Do not pre-reset on console connection
We will need a separate command (e.g. console+prereset) for that.
Michal Sojka [Fri, 25 Aug 2017 05:53:13 +0000 (07:53 +0200)]
shell: Improve error messages
Michal Sojka [Fri, 25 Aug 2017 05:17:24 +0000 (07:17 +0200)]
Rename novabot-server to novaboot-shell
Michal Sojka [Fri, 25 Aug 2017 04:42:31 +0000 (06:42 +0200)]
server: Restructure command handling
Michal Sojka [Thu, 24 Aug 2017 18:52:10 +0000 (20:52 +0200)]
Improve server tests
Michal Sojka [Thu, 24 Aug 2017 18:51:51 +0000 (20:51 +0200)]
server: Improve commens
Michal Sojka [Thu, 24 Aug 2017 18:51:35 +0000 (20:51 +0200)]
server: Distinguish between normal and admin users
Michal Sojka [Thu, 24 Aug 2017 18:48:31 +0000 (20:48 +0200)]
wvtest: Do not exit on first failure
Michal Sojka [Thu, 24 Aug 2017 13:52:42 +0000 (15:52 +0200)]
server: Add tests of username handling
... and prepare for admin user tag.
Michal Sojka [Tue, 22 Aug 2017 08:40:41 +0000 (10:40 +0200)]
tests: Update wvtool
Michal Sojka [Tue, 22 Aug 2017 08:30:20 +0000 (10:30 +0200)]
Updated version of systemd units
This is what I currently use for TX1, but it will need to be modified
to work with novaboot-server. This is planned after novaboot-server is
finished.
Michal Sojka [Tue, 22 Aug 2017 08:23:54 +0000 (10:23 +0200)]
Add initial version of novaboot-server
Michal Sojka [Wed, 10 May 2017 09:01:49 +0000 (11:01 +0200)]
Add systemd units to power-on/off the target
The idea is that whenever somebody logs as a certain user, systemd switches
the target on. After all sessions of that user are closed, systemd starts
a timer and after its expiration, the target is switched off.
Not that power-on is not always working correctly. The reason is that
we would want the novaboot-target-on@XXX.service to finish before the user
is logged. This can be achieved by adding Before= directive to it, but the
problem is that user units do have UIDs and not names, so we cannot simply
write Before=user@%i.service.
Currently, I'm not sure how to properly solve this issue so the power-on
command is commented out. Power-off, however, work correctly.
Michal Sojka [Fri, 5 May 2017 22:14:19 +0000 (00:14 +0200)]
Do not skip first argument when printing effective options
The mistake was that Perl's @ARGV is not the same as C's argv, i.e.
Perl's @ARGV does not contain command name.
Michal Sojka [Thu, 27 Apr 2017 14:02:43 +0000 (16:02 +0200)]
Produce better error messages on expect() failures
Michal Sojka [Mon, 24 Apr 2017 08:20:10 +0000 (10:20 +0200)]
Update changelog for
20170424 release
Michal Sojka [Mon, 24 Apr 2017 08:04:51 +0000 (10:04 +0200)]
Add -tt switch to ssh command for novabox target
This ensures that all target processes are properly killed.
Michal Sojka [Sun, 23 Apr 2017 19:35:52 +0000 (21:35 +0200)]
Change novabox target configuration to take advantage of --novabox-cmd
Now, everything related to novabox "goes" through a single ssh account,
which makes it easier to allow new people to work with the box.
Michal Sojka [Sun, 23 Apr 2017 19:33:15 +0000 (21:33 +0200)]
Add --iprelay-cmd option
Michal Sojka [Sun, 23 Apr 2017 10:51:25 +0000 (12:51 +0200)]
Document (for myself) how to do releases
Michal Sojka [Sun, 23 Apr 2017 10:35:33 +0000 (12:35 +0200)]
Update changelog for
20170423 release
Michal Sojka [Sun, 23 Apr 2017 10:30:38 +0000 (12:30 +0200)]
uboot: Empty FDT address if no device tree is loaded
Without that, depending on configuration, novaboot can pass Linux the
device tree address without the device tree to be present at that address.
Michal Sojka [Sun, 23 Apr 2017 10:15:01 +0000 (12:15 +0200)]
Implement --remote-expect-timeout
Michal Sojka [Fri, 17 Feb 2017 20:54:47 +0000 (21:54 +0100)]
Fix test
It seems that at least Perl 5.24.1, if the parameter of 'do' (which we
use to read the configuration file) is relative patch that does not start
with ./, the file is only searched in Perl @INC path. This results in
test failure, because our configuration file in not in @INC.
Michal Sojka [Fri, 17 Feb 2017 20:39:52 +0000 (21:39 +0100)]
Improve documentation of --interative
Michal Sojka [Wed, 18 May 2016 15:09:42 +0000 (17:09 +0200)]
doc: U-Boot implementation is no-longer tied to one board
We have already used it with at least four different boards (and U-Boot
versions).
Michal Sojka [Wed, 18 May 2016 15:09:16 +0000 (17:09 +0200)]
doc: More grammar fixes
Michal Sojka [Mon, 16 May 2016 08:32:49 +0000 (10:32 +0200)]
Fix typos and grammar
Michal Sojka [Sun, 15 May 2016 08:56:47 +0000 (10:56 +0200)]
Suppress Expect warning: handle id(3) is not a tty...
Michal Sojka [Sun, 15 May 2016 08:55:53 +0000 (10:55 +0200)]
Support 'chld' lines in Emacs novaboot-mode.el
Michal Sojka [Wed, 4 May 2016 13:16:07 +0000 (15:16 +0200)]
Add support for chainloading another bootloader
Michal Sojka [Tue, 3 May 2016 08:07:06 +0000 (10:07 +0200)]
Update changelog for
20160503 release
Michal Sojka [Tue, 3 May 2016 07:51:54 +0000 (09:51 +0200)]
Print effective command line option (after target expansion)
Michal Sojka [Tue, 3 May 2016 07:51:18 +0000 (09:51 +0200)]
Append -serial flags to qemu only if it is not already on the command line
Michal Sojka [Mon, 2 May 2016 11:28:17 +0000 (13:28 +0200)]
Update iprelay IP address
Michal Sojka [Sun, 13 Sep 2015 06:36:37 +0000 (08:36 +0200)]
Teach --make and --scons to into account 'copy' lines
Michal Sojka [Tue, 8 Sep 2015 10:57:55 +0000 (12:57 +0200)]
doc: Add complex example of U-Boot interaction
Michal Sojka [Tue, 8 Sep 2015 10:56:46 +0000 (12:56 +0200)]
Allow redirecting U-Boot command output to a file
Michal Sojka [Tue, 8 Sep 2015 09:15:16 +0000 (11:15 +0200)]
Make @uboot_init elements be always hashrefs
Michal Sojka [Tue, 8 Sep 2015 08:58:45 +0000 (10:58 +0200)]
Add "<" syntax for uboot lines in novaboot script
Michal Sojka [Tue, 8 Sep 2015 08:27:58 +0000 (10:27 +0200)]
Give more structure to syntax documentation
Michal Sojka [Tue, 8 Sep 2015 08:12:09 +0000 (10:12 +0200)]
Add "copy" keyword to novaboot script syntax
Michal Sojka [Tue, 8 Sep 2015 08:04:16 +0000 (10:04 +0200)]
Improve IP address error message
Michal Sojka [Mon, 7 Sep 2015 21:12:13 +0000 (23:12 +0200)]
Preparation for storing U-Boot output to local files
Michal Sojka [Sun, 6 Sep 2015 10:40:45 +0000 (12:40 +0200)]
Clarify --bender doc
Michal Sojka [Wed, 19 Aug 2015 22:17:45 +0000 (00:17 +0200)]
Add --reset-send option
Michal Sojka [Mon, 4 May 2015 08:31:14 +0000 (10:31 +0200)]
doc: Fix typo
Michal Sojka [Mon, 4 May 2015 08:26:35 +0000 (10:26 +0200)]
doc: Add link to novaboot homepage
Michal Sojka [Mon, 4 May 2015 08:26:13 +0000 (10:26 +0200)]
Minor doc updates
Michal Sojka [Mon, 23 Mar 2015 08:17:55 +0000 (09:17 +0100)]
doc: Add encoding directive
POD manual says: if your encoding isn't US-ASCII or Latin-1, then put a
"=encoding encodingname" command early in the document so that pod
formatters will know how to decode the document.
Hopefully, this makes GitHub displaying en-dashes correctly.
Michal Sojka [Mon, 23 Mar 2015 08:13:21 +0000 (09:13 +0100)]
Minor documentation updates
Michal Sojka [Tue, 10 Feb 2015 13:58:38 +0000 (14:58 +0100)]
Do not run --uboot-cmd if it is empty string
Michal Sojka [Tue, 27 Jan 2015 13:49:29 +0000 (14:49 +0100)]
Update changelog for
20150127a release
Michal Sojka [Tue, 27 Jan 2015 12:38:44 +0000 (13:38 +0100)]
uboot: Make loading files and booting independent
When I want to boot the system from flash, I don't need to load
anything, but I need to run a boot command (UBOOT_CMD). This was not
possible without this change.
Michal Sojka [Tue, 27 Jan 2015 12:24:41 +0000 (13:24 +0100)]
Do not invoke rsync if there is nothing to copy
Michal Sojka [Tue, 27 Jan 2015 11:20:50 +0000 (12:20 +0100)]
Update changelog for
20150127 release
Michal Sojka [Tue, 20 Jan 2015 20:52:22 +0000 (21:52 +0100)]
Add --netif option
Michal Sojka [Tue, 16 Dec 2014 12:45:56 +0000 (13:45 +0100)]
Update changelog for
20141216 release
Michal Sojka [Tue, 16 Dec 2014 12:38:22 +0000 (13:38 +0100)]
Generate README in POD format
POD format seems to be also supported by Github and we don't need to use
fragile and constantly evolving pod2markdown script.
Michal Sojka [Tue, 16 Dec 2014 12:30:13 +0000 (13:30 +0100)]
Add --no-final-eol option
Michal Sojka [Tue, 16 Dec 2014 12:14:43 +0000 (13:14 +0100)]
Doc: Rename CONFIGURATION FILE to CONFIGURATION FILES
Michal Sojka [Tue, 16 Dec 2014 12:13:56 +0000 (13:13 +0100)]
Doc: Add a concise list of execution phases
Michal Sojka [Mon, 15 Dec 2014 15:24:48 +0000 (16:24 +0100)]
Do not use nproc to determine the number of processors
On some systems (e.g. with busybox) nproc is not available. Instead use
sysconf(). The only problem is that the _SC_NPROCESSORS_CONF constant is
not defined in the Perl POSIX module. We define it here only for Linux.
Michal Sojka [Mon, 15 Dec 2014 14:21:39 +0000 (15:21 +0100)]
Update changelog for
20141215 release
Michal Sojka [Mon, 15 Dec 2014 14:20:05 +0000 (15:20 +0100)]
tests: Do not run the tests two times
Michal Sojka [Mon, 15 Dec 2014 14:07:50 +0000 (15:07 +0100)]
qemu is no longer hardcoded as default target
This was here only for compatibility with origin novaboot from the NUL
project. As this project seems to be no longer developed, we can
hopefully get rid of it.
Michal Sojka [Mon, 15 Dec 2014 14:16:07 +0000 (15:16 +0100)]
Allow specifying target in NOVABOOT_TARGET environment variable
Michal Sojka [Mon, 15 Dec 2014 14:13:25 +0000 (15:13 +0100)]
tests: Add WVPASSSH function to wvtest.sh
Michal Sojka [Mon, 15 Dec 2014 12:41:13 +0000 (13:41 +0100)]
Always finish novaboot output with new line character
Previously, printed the character only when --exiton was in effect. It
is necessary to print it even in other cases, for example when novaboot
is started with --no-interaction.
The previous print command was erroneously changed to STDERR, so we
change it back to STDOUT.
Michal Sojka [Mon, 15 Dec 2014 12:35:44 +0000 (13:35 +0100)]
Execute --uboot-cmd even if there are no files to boot
This is useful in certain situations, for example when we want to
execute custom U-Boot command end exit novaboot without waiting for next
U-Boot prompt.
We also wrap kernel loading in an if block to suppress Perl warnings
about undefined $kbin.