summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* core/manager: print status messages about running jobsstat2Michal Schmidt2013-02-283-2/+178
| | | | | | | | | | | Sometimes the boot gets stuck until a timeout hits. The usual timeouts are on the order of minutes, so users may lose patience. Print animated status messages telling the names of units with running jobs to make it easy to see what systemd is waiting for. The animation looks cooler with a shorter interval, but 1 s is OK and should not be too hard on slow serial console users.
* core: count active units that may mind our printing to /dev/consoleMichal Schmidt2013-02-282-0/+16
|
* core/execute: determine if ExecContext may fiddle with /dev/consoleMichal Schmidt2013-02-282-0/+33
| | | | | There is some guesswork, but it should work satisfactorily for the purpose of knowing when to suppress printing of status messages.
* core/execute: add internal is_terminal_output()Michal Schmidt2013-02-281-1/+9
| | | | | | | Similar to already existing is_terminal_input(). Note that the only current user (connect_logger_as) is never called for EXEC_OUTPUT_TTY, so it won't mind whether we accept it.
* util: split resolving of /dev/console into a new functionMichal Schmidt2013-02-282-13/+29
|
* core/unit: use a temp variable for manager pointer in unit_notify()Michal Schmidt2013-02-281-11/+14
|
* util, core: add support for ephemeral status linesMichal Schmidt2013-02-285-11/+18
| | | | | Ephemeral status lines do not end with a newline and they expect to be overwritten by the next printed status line.
* core/transaction: replace a bare status_printf()Michal Schmidt2013-02-281-2/+2
| | | | | | Like other status messages, this one too should not be printed unconditionally, but it should take the manager state into account. unit_status_printf() does that.
* core: redefine unit_status_printf()Michal Schmidt2013-02-283-11/+14
| | | | | | Take advantage of the fact that almost all callers want to pass unit description as the last parameter. Those who don't can use the more flexible manager_status_printf().
* core/manager: make a couple of functions staticMichal Schmidt2013-02-282-5/+2
| | | | They're not used outside manager.c anymore.
* core: add manager_status_printf()Michal Schmidt2013-02-284-18/+17
| | | | | | | unit_status_printf() checks the state of the manager, not of the unit as such. Move it to manager.c and rename it to manager_status_printf(). Temporarily keep unit_status_printf as a wrapper macro.
* core: keep track of the number of JOB_RUNNING jobsMichal Schmidt2013-02-272-4/+11
|
* systemctl: fix minimal number of params for new cgroup commandsLennart Poettering2013-02-271-5/+5
|
* unit: rework resource management APILennart Poettering2013-02-2716-638/+872
| | | | | | | | | This introduces a new static list of known attributes and their special semantics. This means that cgroup attribute values can now be automatically translated from user to kernel notation for command line set settings, too. This also adds proper support for multi-line attributes.
* systemctl: fix indentationLennart Poettering2013-02-271-11/+10
|
* Revert "log: fix fallbacks to kmsg"Lennart Poettering2013-02-271-10/+9
| | | | | | | | | | | | | | | | This reverts commit 4a01181e460686d8b4a543b1dfa7f77c9e3c5ab8. This patch broke LOG_TARGET_AUTO, i.e. automatic selection of STDERR if it is a TTY with a fallback on the journal and kmsg otherwise. The general rule should probably be: log_open() -- open the "best" possible logging channel according to log_target configuration. log_dispatch() -- don't open any log channels ever, with the exception of kmsg since that has no drawbacks. And do this only on true errors of the better log channel, not just when it wasn't opened.
* mount-setup: mount pstore filesystemKay Sievers2013-02-271-4/+6
|
* log-show: look at everything in /run/log/journalZbigniew Jędrzejewski-Szmek2013-02-261-1/+3
| | | | | | | | | | | | | | | | | | Logs written by journald from the initramfs may be written to a directory with the name created from a random machine-id. Afterwards, when the root filesystem has been mounted and machine-id reinitalized, logs will be written to the directory with a name created from the proper machine-id. When logs are flushed to /var/log/journal, everything is copied to one output directory. When journalctl without '-m' is run after the logs have been flushed to /var/log/journal, all messages are shown. However, when run while logs are still in /run/log/journal, those stored under the random machine-id will not be shown. Make journalctl behave the same regardless whether persistent storage has been enabled or not, and slurp all files from /run/log/journal even without '-m'.
* test-util.c: added hexchar, unhexchar, octchar, unoctchar, decchar, ↵Daniel Buch2013-02-261-0/+37
| | | | undecchar tests
* kernel-install: rename the loader entry filenameHarald Hoyer2013-02-261-1/+1
| | | | | | | | The wildcard matching the default loader entry should always be able to point to the same machine. So instead of sorting by <distribution>-<kernel-version>-<machine-id> we better sort by <machine-id>-<kernel-version>.
* kernel-install: create the loader entries with absolute paths relative to /bootHarald Hoyer2013-02-261-2/+2
|
* kernel-install: replace URLs with man pages in the error messagesHarald Hoyer2013-02-261-2/+2
|
* kernel-install: fixed paths in boot loader entryHarald Hoyer2013-02-261-13/+15
| | | | For the loader entry a relative path has to be used.
* tests: add a few more tests to test-util.cThomas Hindoe Paaboel Andersen2013-02-251-4/+67
| | | | | | | | | Add asserts on the resutls in FOREACH_WORD_QUOTED Added tests for: FOREACH_WORD strstrip delete_chars in_charset
* kernel-install: remove LANG=Kay Sievers2013-02-251-2/+0
|
* nspawn: add --bind= and --bind-ro= to bind mount host paths into the containerLennart Poettering2013-02-251-22/+97
|
* kernel-install: add kernel-install toolHarald Hoyer2013-02-251-0/+152
|
* Revert "nspawn: catch config mistake of specifying -b and args"Michal Schmidt2013-02-251-5/+0
| | | | | | | | | This reverts commit cb96a2c69a312fb089fef4501650f4fc40a1420b. It is not a mistake to pass args when -b is specified. They will simply be passed on to the container's init. The manpage needs fixing, that's true.
* journal: fix --untilPaul W. Frields2013-02-241-1/+3
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=58946
* nspawn: catch config mistake of specifying -b and argsZbigniew Jędrzejewski-Szmek2013-02-241-0/+5
|
* systemctl: generalize action table to be usable in more action<->verb mappingsMichal Schmidt2013-02-221-75/+38
| | | | Should be no functional change.
* systemctl: make shutdown operations use irreversible jobsMichal Schmidt2013-02-222-7/+18
| | | | | | | | | | | | Occasionally people report problem with reboot/poweroff operations hanging in the middle. One known cause is when a new transaction to start a unit is enqueued while the shutdown is going on. The start of the unit conflicts with the shutdown jobs, so they get cancelled. The failure case can be quite unpleasant, becase getty and sshd may already be stopped. Fix it by using irreversible jobs for shutdown (reboot/poweroff/...) actions. This applies to commands like "reboot", "telinit 6", "systemctl reboot". Should someone desire to use reversible jobs, they can say "systemctl start reboot.target".`
* core, systemctl: add support for irreversible jobsMichal Schmidt2013-02-226-13/+35
| | | | | | | Add a new job mode: replace-irreversibly. Jobs enqueued using this mode cannot be implicitly canceled by later enqueued conflicting jobs. They can however still be canceled with an explicit "systemctl cancel" call.
* systemctl: make "systemctl default" use "isolate" job modeMichal Schmidt2013-02-221-1/+2
| | | | | | "systemctl default" should behave identically to "telinit N" (where N is the corresponding runlevel target number), therefore it should use isolate job mode too.
* journal: sd_journal_get_cursor should return 0 on successZbigniew Jędrzejewski-Szmek2013-02-221-1/+1
| | | | | | | Documentation states that 0 is correct, and all other similar functions return 0 on success. Pointed-out-by: Steven Hiscocks <steven-systemd@hiscocks.me.uk>
* fstab-generator: change kernel command line mount path for rootHarald Hoyer2013-02-211-2/+2
| | | | | Use /sysroot instead of /new_root to mount the real root in the initramfs.
* tests: more tests for util.cThomas Hindoe Paaboel Andersen2013-02-201-0/+65
| | | | | | | | tests for: test_parse_pid test_parse_uid test_safe_atolli test_safe_atod
* test-strv.c: ported test_specifier_printf() to _cleanup_free_ + assert_se + ↵Daniel Buch2013-02-181-3/+5
| | | | cleanup
* test-strv.c: added OOM check for current testsDaniel Buch2013-02-181-0/+16
| | | | | | New OOM check patch: I do assert_se() before variable is used to do correct check.
* test-strv.c: added strv_split_nulstr() testDaniel Buch2013-02-181-0/+13
|
* tests: add test of memdup_multiplyThomas Hindoe Paaboel Andersen2013-02-181-0/+14
|
* bootctl: show "n/a" for empty boot option labelsKay Sievers2013-02-172-2/+8
|
* udev: usb_id: parse only 'size' bytes of the 'descriptors' bufferKay Sievers2013-02-171-1/+1
|
* udev: usb_id - ignore non-ASCII serial numbersKay Sievers2013-02-171-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | On Thu, Feb 7, 2013 at 3:52 PM, Robert Milasan <rmilasan@suse.com> wrote: > Hi, seems that using some strange usb devices with really bogus serial > numbers usb_id creates links with junk strings in it: > > /dev/disk/by-id/usb-TSSTcorp_BDDVDW_SE-506AB_㡒䍌䜶䉗ぁㄴ㌴†ँ-0:0 > > Initially was believed that usb_id is to blame, then the kernel, but it > turns out that really the usb cd/dvd drive has this bogus serial number: > > output from dmesg: > [ 538.200160] usb 1-2: new high-speed USB device number 5 using > ehci_hcd [ 538.335067] usb 1-2: New USB device found, idVendor=0e8d, > idProduct=1956 [ 538.335080] usb 1-2: New USB device strings: Mfr=1, > Product=2, SerialNumber=3 [ 538.335089] usb 1-2: Product: MT1956 > [ 538.335097] usb 1-2: Manufacturer: MediaTek Inc > [ 538.335105] usb 1-2: SerialNumber: > \xffffffe3\xffffffa1\xffffff92\xffffffe4\xffffff8d\xffffff8c ... > [ 538.337540] scsi6 : usb-storage 1-2:1.0 [ 539.341385] scsi 6:0:0:0: > CD-ROM TSSTcorp BDDVDW SE-506AB TS00 PQ: 0 ANSI: 0 > [ 539.354240] sr0: scsi3-mmc drive: 0x/24x writer dvd-ram cd/rw > xa/form2 cdda tray [ 539.354777] sr 6:0:0:0: Attached scsi CD-ROM sr0 > [ 539.355122] sr 6:0:0:0: Attached scsi generic sg2 type 5
* efi: compare by substractionKay Sievers2013-02-171-6/+1
|
* udev: expose new ISO9660 properties from libblkidZeeshan Ali (Khattak)2013-02-171-0/+16
|
* systemctl: allow comma sepearted property listsZbigniew Jędrzejewski-Szmek2013-02-161-5/+20
|
* bootchart: rename --filter to --no-filterZbigniew Jędrzejewski-Szmek2013-02-161-22/+22
| | | | | | Turning off filtering with --filter is just too confusing. Config option "Filter" doesn't have to be changed, here "Filter=yes" already meant to filter.
* bootchart: provide better error messagesZbigniew Jędrzejewski-Szmek2013-02-161-9/+21
|
* man: move bootchart README to manpage, docbooksifyZbigniew Jędrzejewski-Szmek2013-02-162-83/+11
|