Compare commits

..

337 commits

Author SHA1 Message Date
Python Maint
a0317f94b5 Rebuilt for Python 3.15.0b4 ABI change 2026-07-22 10:16:14 +02:00
Fedora Release Engineering
9213a0ec8f Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:18:23 +00:00
Karel Zak
d3c879ee06 upgrade to upstream release v2.42.2 2026-06-16 14:56:23 +02:00
Python Maint
e20697608b Rebuilt for Python 3.15 2026-06-03 17:43:18 +02:00
Karel Zak
62e94b8fcb revert util-linux-i18n noarch (rhbz#2453891) 2026-05-20 11:07:37 +02:00
Karel Zak
49c5ecdbfb make util-linux-i18n noarch (rhbz#2453891) 2026-05-20 10:28:46 +02:00
Karel Zak
ad160404f2 fix pam_lastlog2 patch to modify only Makefile.in 2026-05-19 13:49:26 +02:00
Karel Zak
f891325268 upgrade to upstream release v2.42.1
- fix pam_lastlog2 libpam linking (rhbz#2453457)
2026-05-19 13:29:13 +02:00
Karel Zak
da7125e4bb upgrade to upstream release v2.42 2026-04-02 14:26:48 +02:00
Fedora Release Engineering
196be3f2a1 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:43:43 +00:00
Nuo Cheng
47417a6e2e Update util-linux-su.pamd
fix variables not set in /etc/environment through command 'su --login'
2026-01-12 12:21:28 +01:00
Karel Zak
4737f2d702 enable BuildRequires for parsers 2026-01-12 12:15:47 +01:00
Karel Zak
06dbf9bb28 fix built on new gcc (bison based code and libblkid API) 2026-01-12 11:55:59 +01:00
Karel Zak
4bac19fd38 add completition bits blkpr lsfd 2025-12-15 16:53:44 +01:00
Karel Zak
df438c4170 upgrade to upstream release v2.41.3 2025-12-15 16:42:08 +01:00
ab6d50b588 Merge #25 liblastlog2 uses /var/lib/lastlog 2025-12-02 15:55:21 +00:00
Karel Zak
9c226720cb backport upstream patches for GCC-15
- regenerate Fedora patches from the Git tree
2025-12-02 16:37:43 +01:00
Fxzx micah
7ef16d92f7 liblastlog2 uses /var/lib/lastlog
You can verify it through man pam_lastlog2.
2025-11-18 19:22:12 +00:00
Karel Zak
ba1905c6c7 upgrade to upstream release v2.41.2 2025-10-23 13:01:34 +02:00
Python Maint
9e2caeba0d Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 15:01:56 +02:00
Python Maint
5679a7db71 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:21:47 +02:00
Karel Zak
b9ed3a9a74 use RPM macros for /var/lib and /run 2025-08-05 09:59:26 +02:00
Karel Zak
39c148ff89 add /var/lib/liblastlog to files list 2025-08-05 09:49:01 +02:00
Fedora Release Engineering
04d2b6b0ad Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:54:31 +00:00
eeebe2875e Merge #24 tests: migrate from STI to TMT 2025-07-16 10:48:03 +00:00
Karel Zak
164a6760ec enable lastlog2-import.service 2025-07-15 14:24:23 +02:00
Lukáš Zaoral
0382798ff4
tests: migrate from STI to TMT
Related: https://fedoraproject.org/wiki/Changes/DisableSTI
2025-06-24 14:19:13 +02:00
Karel Zak
7d135acec2 Fix ldattach build on recent glibc headers. 2025-06-24 11:20:00 +02:00
Karel Zak
b309d832e2 Temporarily disable support for EROFS backing files. 2025-06-24 11:02:22 +02:00
Karel Zak
404f522557 remove obsolete patch 2025-06-24 10:45:43 +02:00
Karel Zak
bf8d5779df upgrade to upstream release v2.41.1
... https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41-ReleaseNotes
- add lastlog2 library and PAM module
- add new utils bits, coresched and lastlog2
2025-06-24 10:37:18 +02:00
Python Maint
8e9f6cee44 Rebuilt for Python 3.14 2025-06-09 12:44:41 +02:00
Miro Hrončok
0e7e2e7599 Revert to util-linux-2.40.4-7 to rebuild it for Python 3.14
The revert is needed because of https://bodhi.fedoraproject.org/updates/FEDORA-2025-dd6b6950ff failures.

This reverts commit e873a14a1d
2025-06-09 12:44:41 +02:00
Python Maint
ca46de6072 Rebuilt for Python 3.14 2025-06-02 20:26:03 +02:00
Karel Zak
67c133a8d4 add BuildRequires for lastlog2 2025-05-12 14:33:31 +02:00
Karel Zak
e873a14a1d upgrade to upstream release v2.41
... https://www.kernel.org/pub/linux/utils/util-linux/v2.41/v2.41-ReleaseNotes
- add lastlog2 library and PAM module
- add new utils bits, coresched and lastlog2
2025-05-12 14:16:44 +02:00
Dusty Mabe
cd951d5e56
backport blkid: allow up to 64k erofs block sizes
This is a backport of [1], which should help us use EROFS in live
media on ppc64le [2].

[1] ff0ac0f27d
[2] https://github.com/coreos/fedora-coreos-tracker/issues/1877
2025-02-19 14:50:05 -05:00
Karel Zak
3e60999497 remove useradd (replaced by sysusers config) 2025-02-12 12:13:29 +01:00
347d30bca0 Merge #20 Conditionalize pam dependency 2025-02-04 18:41:01 +00:00
Karel Zak
674f706e83 add sysusers config for uuidd 2025-02-04 10:46:42 +01:00
3abb2f6222
Add explicit BR: libxcrypt-devel
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2025-02-01 19:58:02 +01:00
Yaakov Selkowitz
56f4756f3a Conditionalize pam dependency
pam is a host service, and is not used inside of flatpaks or toolboxes.
2025-01-20 22:22:08 +00:00
Fedora Release Engineering
0298d7d2a2 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 14:00:04 +00:00
Karel Zak
d6af9bf445 upgrade to v2.40.4
https://www.kernel.org/pub/linux/utils/util-linux/v2.40/v2.40.4-ReleaseNotes
https://www.kernel.org/pub/linux/utils/util-linux/v2.40/v2.40.3-ReleaseNotes
2025-01-15 11:19:34 +01:00
240d76d679 Rebuilt for the bin-sbin merge (2nd attempt)
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
2025-01-12 14:42:55 +01:00
Karel Zak
61d2c55ceb improve util-linux-script subpackage 2024-09-03 12:15:12 +02:00
Daan De Meyer
5a2471d6e5 Move script utilities to util-linux-script subpackage
This allows installing util-linux without pulling in the
libutempter library which includes a setgid binary that I'd like
to avoid installing on my systems.
2024-08-23 11:27:11 +02:00
Daan De Meyer
6975c91b71 Remove setgid and tty group from /usr/bin/write
We already require root privileges for /usr/bin/wall so let's do the
same for /usr/bin/write.

"""
-rwxr-xr-x    1 root     root                    28456 Aug 14 02:00 /usr/bin/wall
-rwxr-xr-x    1 root     root                    36792 Aug 14 02:00 /usr/bin/wdctl
-rwxr-xr-x    1 root     root                    33160 Aug 14 02:00 /usr/bin/whereis
-rwxr-xr-x    1 root     root                    24352 Aug 14 02:00 /usr/bin/write
"""
2024-08-14 13:46:45 +02:00
Daan De Meyer
0921016466 Fix whitespace issues 2024-08-14 13:28:56 +02:00
Fedora Release Engineering
479766f342 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:28:34 +00:00
c96f6dfba7 Add compat Providess for binaries under /usr/sbin
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

Requires:/usr/sbin/runuser is present in knot.
BuildRequires: /usr/sbin{fsck,sfdisk} used by some other packages.
2024-07-09 12:42:02 +02:00
480d4cbafa Add workaround for borked autotools installation
https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

Without this, build on a system with merged-sbin fails.

[skip changelog]
2024-07-09 12:42:02 +02:00
Karel Zak
abe9339a37 upgrade from v2.40.1 to v2.40.2
https://kernel.org/pub/linux/utils/util-linux/v2.40/v2.40.2-ReleaseNotes
2024-07-04 10:40:20 +02:00
Python Maint
8472af8e2c Rebuilt for Python 3.13 2024-06-07 08:51:30 +02:00
Karel Zak
e345fc8ab4 upgrade to stable v2.40.1 2024-05-06 11:14:27 +02:00
Karel Zak
981295a856 remove pre-release option 2024-04-08 10:59:41 +02:00
Karel Zak
bc83b318de upgrade to v2.40 2024-03-29 08:13:14 +01:00
Karel Zak
f0320c8ef7 fix license related stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 2cc6ef8a87)
2024-02-28 14:47:36 +01:00
Karel Zak
0bd50d406f use SPDX based identifiers for license field 2024-02-21 11:30:53 +01:00
Colin Walters
1d94d2966a Backport 211a9da0b4
xref https://github.com/coreos/rpm-ostree/issues/4830
2024-02-15 11:39:09 -05:00
Karel Zak
5854ee9f05 add autorelease and autochangelog 2024-02-07 13:05:18 +01:00
ceb56aabcb Replace loop by a single invocation with multiple arguments 2024-02-06 11:31:59 +01:00
b15359d1d4 $RPM_BUILD_ROOT → %{buildroot}
It is shorter and also does not mess up the host system if somebody
makes a typo.
2024-02-06 11:31:55 +01:00
dc6a971801 Enable fstrim.timer on upgrades
This fixes https://bugzilla.redhat.com/show_bug.cgi?id=2262393 for upgrades.
Since the timer was not enabled previously, we want to enable it here so that
https://fedoraproject.org/wiki/Changes/EnableFSTrimTimer is actually true.
2024-02-06 11:28:02 +01:00
e5d9a1e3ef Add unit scriptlets for fstrim.service and .timer
https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_scriptlets

We want to "restart" the timer so that the it's rescheduled if there
are any changes to frequency or other settings. This will not cause the timer
to fire immediately. We don't restart the service itself, because, if it happens
to be running, we want it to just finish as it was.

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=2262393 for new
installations. A preset call was missing for fstrim.timer, so if util-linux
was installed after systemd, the unit would not be enabled.
2024-02-06 11:28:02 +01:00
a4d9e81291 Replace systemd dependencies with just ordering
systemd-units has been merged into systemd a long time ago. But we
don't really need this dependency at all. Let's just declare ordering,
so that this package is installed after systemd if both are installed
in the same transaction.

See https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_dependencies_on_the_systemd_package
for discussion and justification.
2024-02-06 11:28:02 +01:00
1d0d7588dd Simplify systemd scriplets
It is better to use a single %systemd_* macro to avoid some executions
and repeated checks.
2024-02-06 11:27:58 +01:00
Karel Zak
bac574c283 2.40-0.1: upgrade to v2.40-rc1 2024-02-05 10:29:29 +01:00
Karel Zak
c9ce0bbf54 2.39.3-4: improve util-linux-i18n conflicts 2024-01-25 13:09:13 +01:00
Karel Zak
8ecb7f1bee 2.39.3-3: fix libsmartcols 2024-01-25 11:12:49 +01:00
Karel Zak
a16ce36c6f 2.39.3-2: fix util-linux-i18n conflicts 2024-01-11 15:18:52 +01:00
Karel Zak
302188f833 fix date typo, remove obsolete patch 2023-12-31 12:08:22 +01:00
Karel Zak
58dc9b6959 2.39.3-1: upgrade 2023-12-31 12:05:50 +01:00
Daan De Meyer
9a5289e70c Move sulogin to util-linux-core
An initrd will almost always need sulogin installed for debugging
purposes. This means that we're forced to install the full util-linux
into initrds. Let's allow installing just util-linux-core in initrds
by moving sulogin to util-linux-core.
2023-12-01 20:15:24 +01:00
Karel Zak
59309f26f2 2.39.2-1: upgrade 2023-08-17 12:13:31 +02:00
Fedora Release Engineering
0b1e1d7cfe Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 17:19:50 +00:00
Python Maint
8760847a17 Rebuilt for Python 3.12 2023-06-28 19:05:08 +02:00
Karel Zak
b2320e7499 2.39.1-1: upgrade 2023-06-28 10:53:17 +02:00
Python Maint
b04999a5a6 Rebuilt for Python 3.12 2023-06-13 20:42:57 +02:00
Karel Zak
7961e208cd 2.39-4: libmount fix 2023-05-25 12:31:34 +02:00
Karel Zak
db855d07b8 2.39-3: fix mount options 2023-05-22 15:57:23 +02:00
Adam Williamson
fe2d027119 Have util-linux obsolete and provide util-linux-user 2023-05-18 09:31:58 -07:00
Karel Zak
844dcc152c 2.39-1: upgrade, add subpackage i18n, remove user 2023-05-18 11:36:49 +02:00
Karel Zak
c87ed81c2c 2.39-0.5: upgrade to 2.39-rc3 2023-04-19 11:39:42 +02:00
Karel Zak
09904cbd56 2.39-0.4: fix libmount 2023-04-05 21:59:20 +02:00
Karel Zak
5fa93ec5e0 fix spec file for -rc2 2023-04-04 19:34:43 +02:00
Karel Zak
3bf1f5a44f 2.39-0.2: upgrade to -rc2 2023-04-04 14:59:49 +02:00
Karel Zak
4ffd39d553 commit missing files 2023-03-21 19:34:04 +01:00
Karel Zak
a228e53a4b 2.39-0.1: upgrade to -rc1 2023-03-20 13:55:14 +01:00
Fedora Release Engineering
a04c11370c Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 06:01:31 +00:00
Florian Weimer
d65ce0b32c Backport upstream patch to fix C99 issue in kill
It is again necessary to run autotools during the build.

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
2022-12-17 21:40:37 +01:00
Karel Zak
260ccc24c5 2.38.1-2: improve tmpfiles.d use 2022-08-22 12:00:27 +02:00
Karel Zak
c96992b25e 2.38.1-1: upgrade 2022-08-04 16:04:00 +02:00
Fedora Release Engineering
dd1f0e5a82 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 11:35:51 +00:00
Python Maint
f64c455630 Rebuilt for Python 3.11 2022-06-13 15:08:44 +02:00
Karel Zak
1f18765a68 2.38-3: fix changelog 2022-04-13 20:47:23 +02:00
6c5649c0b6 Simplify creation of /etc/mtab symlink
It was created unconditionally in %post, so the original contents (if
any) were overwritten. Listing is as %config was just misleading.
Let's simply list the symlink as normal contents in the rpm, so that
rpm can install the symlink for us.

(The scriplet was missing a dependency on coreutils for ln, but let's
not add that if we can drop the whole thing.)

[kzak@redhat.com: - add %changelog entry]
2022-03-30 13:33:13 +02:00
Karel Zak
6578411a87 2.38-1: upgrade, spec file cleanup 2022-03-30 13:15:41 +02:00
3b965f951d Modernize style
Guidelines say %global should be used instead of %define.
Also drop periods from Summary, add them to %description.
%__sed and friends are deprecated.
2022-03-30 13:05:58 +02:00
c409cb5073 Drop very old upgrade scriptlet for libblkid
It was there in the initial commit in 2011, but it looks like it is
older than that.
2022-03-30 12:58:54 +02:00
Karel Zak
f3b1a65177 2.38-rc3: upgrade 2022-03-16 09:54:43 +01:00
Karel Zak
5abc3df64a 2.38-0.3: add /usr/lib/tmpfiles.d/uuidd.conf 2022-02-02 12:23:05 +01:00
f9a78e1def 2.38-0.2: Release ownership of /var/log/lastlog
/var/log directory is provided by filesystem package, no need to create
it. And systemd >= 235 will create /var/log/lastlog owned by utmp. So
release ownership of the file, and let systemd manage it.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1798685.
Similar change in setup: https://pagure.io/setup/pull-request/30.
2022-02-02 11:23:26 +01:00
Karel Zak
f55af7b31a add v2.38-rc1 sources 2022-01-31 16:32:09 +01:00
Karel Zak
93b5e7b623 2.38-0.1: upgrade to v2.38-rc1 2022-01-31 16:22:25 +01:00
Fedora Release Engineering
b3ca809df8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 03:42:53 +00:00
Karel Zak
2abaf6eb96 2.37.2-1: upgrade 2021-08-17 10:43:34 +02:00
Fedora Release Engineering
f9f53d46a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 20:13:49 +00:00
Karel Zak
31097faf0c 2.37-5: remove util-linux-60-raw.rules 2021-07-14 18:20:13 +02:00
Karel Zak
e7be6ae5f5 2.37-4: fix #1981729 (close_range(), remove raw(8) and PCRE2 use) 2021-07-14 18:08:26 +02:00
Richard W.M. Jones
cca6bc092d Rebuild for updated pcre2
The package fails to install in Rawhide at the moment with:

DEBUG util.py:444:  Error:
DEBUG util.py:444:   Problem: package util-linux-2.37-2.fc35.x86_64 requires util-linux-core = 2.37-2.fc35, but none of the providers can be installed
DEBUG util.py:444:    - conflicting requests
DEBUG util.py:444:    - nothing provides libpcre2-posix.so.2()(64bit) needed by util-linux-core-2.37-2.fc35.x86_64

This is my attempt to see if I can fix this with a simple rebuild.  If
not I will file a bug.
2021-06-16 11:55:58 +01:00
Python Maint
e86e462be5 Rebuilt for Python 3.10 2021-06-04 21:19:06 +02:00
Karel Zak
b50e3f3a07 2.37-1: upgrade, add util-linux-core 2021-06-01 12:23:41 +02:00
Karel Zak
f00635cf14 2.37-0.1: upgrade to upstream v2.37-rc2 2021-05-14 10:42:53 +02:00
985b3cb330 Make changelog chronological again 2021-04-21 17:04:24 +02:00
05489e2334 Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:12:05 +01:00
2002e7d438 2.36.2-2: Spec file cleanup
[kzak@redhat.com: - add changelog entry to spec file]
2021-03-02 13:00:11 +01:00
Karel Zak
8abfa74392 2.36.2-1: upgrade 2021-02-12 16:14:51 +01:00
Kelvin Fan
1c853c1f4b 2.36.1-4: Add patch to add /run/motd.d to default MOTD_FILE in login(1) 2021-01-27 17:19:12 +01:00
Karel Zak
b188598d35 2.36.1-3: improve uuidd scriptlets
It seems we need to explicitly restart and uninstall uuiddd.socket
unit too.
2021-01-14 15:42:41 +01:00
Tom Stellard
08aad7c190 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-09 00:31:51 +00:00
Karel Zak
5977e189d6 2.36.1-2: cleanup patches, fix 'symfollow' mount issue 2020-11-19 11:50:25 +01:00
Karel Zak
347549f079 upload sources 2020-11-16 15:32:39 +01:00
Karel Zak
c48435329a 2.36.1: upgrade 2020-11-16 14:56:03 +01:00
Tom Stellard
b441300c92 v2.36-4: Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro

[kzak@redhat.com: - port to the current master branch]
2020-11-12 11:10:09 +01:00
Karel Zak
b0e9e3bcb8 2.36-3: #1860461 - sfdisk gaps
and add autotools to BuildRequires
2020-09-01 13:40:56 +02:00
Karel Zak
16f25ffc54 2.36-3: remove libmount mountinfo workaround 2020-09-01 12:45:28 +02:00
Fedora Release Engineering
5aecaa99fe - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 13:28:25 +00:00
Karel Zak
f991f6faa9 2.36-1: upgrade 2020-07-23 14:51:41 +02:00
98af691bc7 Merge #5 Minor conditional tweaks for ELN 2020-06-23 10:41:51 +00:00
Miro Hrončok
ed9b0d3627 Rebuilt for Python 3.9 2020-05-26 03:54:15 +02:00
Karel Zak
acc3919c15 new v2.35.2 tarball 2020-05-20 17:09:41 +02:00
Karel Zak
e998a685f7 2.35.2-1: upstream stable update 2020-05-20 17:06:23 +02:00
098671aa4d Minor conditional tweaks for ELN
Signed-off-by: Troy Dawson tdawson@redhat.com
2020-05-13 19:06:17 +00:00
Karel Zak
fe0e3c7437 2.35.1-9: fix typo 2020-04-15 10:29:57 +02:00
Karel Zak
7c81cc769f 2.35.1-8: fix #1822226 #1823463 2020-04-15 09:57:05 +02:00
Kalev Lember
580f0fece0 Another attempt at enabling fstrim.timer on F32 upgrades (#1811506)
Avoid using %systemd_post as it is guarding the trigger with '$1 -eq 1'
which not true for %triggerpostun (it's 2 for updates in triggerpostun).

Also, while at this, fine-tune the trigger condition to trigger for
package updates from older F32 versions as well -- this makes it much
easier to test this fix, and also fixes fstrim.timer for anyone who
installed from F32 beta media.
2020-03-24 13:50:01 +01:00
Karel Zak
9a75633915 2.35.1-6: fix #1811506 (triggerpostun) 2020-03-19 10:22:45 +01:00
Karel Zak
f1bf9845c3 2.35.1-5: fix lsblk -P 2020-02-25 16:01:23 +01:00
Karel Zak
20ae04497c 2.35.1-4: enable fstrim.timer when upgrading
During upgrades of Fedora 30/31 to 32/33, enable fstrim.timer per
the new vendor preset so they're the same as a clean install.

Addresses: https://fedoraproject.org/wiki/Changes/EnableFSTrimTimer
Addresses: https://pagure.io/fesco/issue/2309
2020-02-06 11:59:30 +01:00
Karel Zak
2831759869 2.35.1-3: fix fstrim.service 2020-02-04 16:34:54 +01:00
Karel Zak
523a7c4f54 2.35.1-2: sfdisk issue 2020-02-04 15:31:56 +01:00
Karel Zak
086a8aa5c9 2.35.1-1: upstream upgrade 2020-02-03 12:08:46 +01:00
Fedora Release Engineering
028de3ee58 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 02:50:05 +00:00
Karel Zak
b3e437baf2 2.35-1: upgrade 2020-01-21 12:13:20 +01:00
Karel Zak
7c4fd7f42a 2.35-0.5: upgrade to usptream -rc2 2020-01-09 10:48:10 +01:00
Karel Zak
80deb77249 2.35-0.4: fix agetty 2019-12-20 15:10:19 +01:00
Karel Zak
a61dbe7cc6 2.35-0.3: upgrade to upstream snapshot 2019-12-20 13:26:59 +01:00
Adam Williamson
2cde2b2546 Revert upstream commit 7ef86a0 to fix RHBZ #1783066 2019-12-12 18:07:54 -08:00
Karel Zak
42ab31a080 2.35-0.1: upgrade to usptream release 2019-12-11 12:57:10 +01:00
Karel Zak
707076abd5 2.34-6: mountinfo issue 2019-09-13 09:53:00 +02:00
Karel Zak
83243ee93c 2.34-5: #1751290 (lsblk) 2019-09-12 11:36:01 +02:00
Karel Zak
4ac61ab4ac 2.34-4: add BuildRequires: readline
Note that the library is already in Fedora minimal base.
2019-09-05 13:04:30 +02:00
Miro Hrončok
4820f4132a Rebuilt for Python 3.8 2019-08-19 11:08:55 +02:00
Karel Zak
a1ba076eea 2.34-2: add BuildRequires: librtas-devel 2019-07-24 17:00:02 +02:00
Karel Zak
a495296401 2.34-1: upstream version upgrade 2019-06-14 14:03:34 +02:00
Karel Zak
c0267df5f2 2.34-0.2: new sources 2019-05-30 12:50:39 +02:00
Karel Zak
7748eaf530 2.34-0.2: upgrade 2019-05-30 12:44:03 +02:00
Karel Zak
351fc04cd1 2.34-0.1: upgrade 2019-05-02 10:03:39 +02:00
Karel Zak
5ecbe52e91 2.33.2-1: upgrade 2019-04-09 16:14:33 +02:00
6469bd527b
Remove obsolete scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-03-07 11:20:51 +01:00
Fedora Release Engineering
8645c3a8bd - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 10:59:49 +00:00
11d74871f2 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-01-28 20:24:53 +01:00
7152f9510d
Rebuilt for libcrypt.so.2 (#1666033) 2019-01-14 18:53:50 +01:00
Karel Zak
ffe5e68263 2.33.1-1: upgrade 2019-01-09 11:54:05 +01:00
Karel Zak
bdd2c5116b fix build on s390 2018-11-01 11:24:45 +01:00
Karel Zak
a3884eaf3e 2.33-0.1: upgrade, ldconfig 2018-11-01 10:09:29 +01:00
Karel Zak
59614e3019 2.32.1-1: upgrade
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-07-16 13:46:33 +02:00
Fedora Release Engineering
bfac7fc8c6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 08:21:38 +00:00
Jason Tibbitts
052fa90bc6 Remove needless use of %defattr 2018-07-10 01:43:37 -05:00
Miro Hrončok
5940ccada5 Rebuilt for Python 3.7 2018-06-19 11:30:05 +02:00
Karel Zak
4ada5eaed7 add adjtime file 2018-05-18 11:08:27 +02:00
Karel Zak
437d842852 2.32-5: move /etc/adjtime from initscripts to util-linux 2018-05-18 10:47:36 +02:00
Karel Zak
c18880bcb1 2.32-4: fix uuidd.service 2018-04-11 09:27:03 +02:00
Karel Zak
ba7c336b4c 2.32-3: improve ./configure 2018-04-10 14:56:50 +02:00
Karel Zak
c96e764d51 2.32-2: fix #1560283 2018-03-27 11:17:39 +02:00
Karel Zak
3d6431f7c5 remove unused patches 2018-03-27 11:07:40 +02:00
Karel Zak
4c91ee804e 2.32-1: upgrade 2018-03-21 15:59:31 +01:00
Karel Zak
279eda57a9 2.32-0.2: add BuildRequires gcc 2018-02-20 12:20:35 +01:00
Karel Zak
d3224d47ec 2.32-0.1: upstream upgrade 2018-02-13 13:46:57 +01:00
Fedora Release Engineering
3d667f8a82 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 20:13:27 +00:00
8039d29dfb
Rebuilt for switch to libxcrypt 2018-01-20 23:08:40 +01:00
530b947e7b Merge #3 Fix directory ownership in python subpackage 2018-01-12 12:13:52 +00:00
Lumir Balhar
58bac092a5 Fix directory ownership in python subpackage 2018-01-03 16:24:53 +01:00
Serhii Turivnyi
55938ef1c2 Add CI tests for Atomic Host using the standard test interface 2017-12-15 14:43:47 +02:00
8db7d85a0e Merge #1 Initial commit for downstream tests using standard test interface 2017-11-15 12:27:20 +00:00
Karel Zak
4420515181 2.31-2: dmesg fix 2017-10-30 15:20:51 +01:00
Karel Zak
3251a896f8 2.31-1: remove obsolete patch 2017-10-23 12:29:38 +02:00
Karel Zak
95b12b7aa0 2.31-1: upstream ugrade 2017-10-23 11:56:41 +02:00
Rachel Sibley
a56a94947c Initial commit for downstream tests using standard test interface 2017-10-16 16:00:11 -04:00
Karel Zak
401fd81490 2.31-0.4:fix losetup build error 2017-10-09 11:01:57 +02:00
Karel Zak
8aba0e5c79 new sources 2017-10-09 10:49:50 +02:00
Karel Zak
208b062ff6 2.31-0.3: upgrade to rc2, enable rfkill 2017-10-09 10:42:31 +02:00
Karel Zak
2cbb58aee9 2.31-0.2: disable rfkill
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-09-25 11:24:21 +02:00
Karel Zak
93789c7721 upgrade to v2.31-rc1 2017-09-22 12:56:53 +02:00
Karel Zak
558fdf8110 upgrade to v2.30.2 2017-09-22 10:17:26 +02:00
Karel Zak
8aba564a5f 2.30.1-5: ln-s more robust 2017-08-14 11:16:01 +02:00
Karel Zak
d8ee2107f1 2.30.1-4: fix post install script 2017-08-04 11:01:51 +02:00
Karel Zak
f898c96467 2.30.1-3: fix #1390191 2017-08-02 15:10:45 +02:00
Fedora Release Engineering
c186315fe8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 21:07:09 +00:00
Karel Zak
cdab8b4a76 upgrade to v2.30.1
Signed-off-by: Karel Zak <kzak@redhat.com>
2017-07-20 14:16:09 +02:00
Karel Zak
17b923cc1e upgrade to v2.30 2017-06-02 12:58:33 +02:00
Karel Zak
77887c051b upgrade to v2.30-rc1 2017-05-17 10:51:15 +02:00
Karel Zak
4efad38df3 upgrade to v2.29.2 2017-02-24 12:25:37 +01:00
Fedora Release Engineering
04f1d57f74 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 16:52:10 +00:00
Karel Zak
07ed6e64f8 upgrade to v2.29.1 2017-01-20 15:52:13 +01:00
Miro Hrončok
d3eae21d69 Rebuild for Python 3.6 2016-12-19 18:20:38 +01:00
Karel Zak
3d940d4e83 upgrade to v2.29 2016-11-08 12:47:08 +01:00
Karel Zak
b570e8a4eb upgrade to v2.29-rc2 2016-10-19 15:30:01 +02:00
Karel Zak
c55c42ae5d upgrade to v2.29-rc1 2016-09-30 12:04:51 +02:00
Karel Zak
b106becc25 v2.28.2: upgrade 2016-09-07 14:18:10 +02:00
Karel Zak
ef494ba0d6 v2.28.1: upgrade 2016-08-18 09:59:05 +02:00
Fedora Release Engineering
e91f50c406 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 13:05:20 +00:00
Karel Zak
de66720388 2.28-3: fix #1234317 2016-06-13 13:10:17 +02:00
Karel Zak
2afb30fac6 v2.28-2: update a patch
+ /usr/bin/cat /builddir/build/SOURCES/2.23-login-lastlog-create.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch
1 out of 1 hunk FAILED -- saving rejects to file login-utils/login.c.rej

Addresses: https://kojipkgs.fedoraproject.org/work/tasks/3930/13783930/build.log
2016-04-26 12:50:04 +02:00
Karel Zak
02e8b22b8e 2.28.1: upgrade 2016-04-12 13:38:27 +02:00
Karel Zak
77818367d0 2.28-0.3: libblkid: bugfix 2016-03-30 15:04:47 +02:00
Karel Zak
e466e3cc2f commit new completion scripts 2016-03-29 11:51:16 +02:00
Karel Zak
c67f1a42d8 2.28.0.2: upgrade to rc2 2016-03-29 11:19:22 +02:00
Karel Zak
ae201aa504 commit missing patch 2016-03-22 13:53:06 +01:00
Karel Zak
3f8e6b01a1 2.28.0.1: upgrade 2016-03-22 13:41:15 +01:00
Fedora Release Engineering
c3fa85dd81 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 02:29:08 +00:00
Karel Zak
9f10eae074 2.27.1-3: fix #1299255 2016-01-18 15:15:15 +01:00
Karel Zak
c9e662019e 2.27.1-3: improve things for #1259745 2015-11-18 12:29:00 +01:00
9da9be552a - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 2015-11-10 18:14:40 +00:00
Karel Zak
6af60835d3 2.27.1-1: upgrade to stable release 2015-11-02 12:37:45 +01:00
Karel Zak
1a7e2063fd 2.27-1: upgrade to stable v2.27 2015-09-07 12:59:30 +02:00
Karel Zak
1dd1b6a182 2.27-0.4: upgrade to rc2 2015-08-24 13:18:12 +02:00
Karel Zak
298e4e50ad 2.27-0.3: small spec file changes 2015-08-13 11:35:50 +02:00
Karel Zak
185c052093 2.27-0.2: #1251320 and specfile portability 2015-08-12 10:56:45 +02:00
Karel Zak
bfcb468173 v2.27: upgrade 2015-07-31 13:10:27 +02:00
Karel Zak
6278f8fb46 2.26.2-3: add dependence on systemd 2015-07-16 12:35:07 +02:00
Karel Zak
781e4d0274 2.26.2-3: fix spec file dates 2015-07-16 12:13:18 +02:00
Jaromir Capik
b92fbbf0f8 Adding --without-tinfo to STAGE1 recipe
When the configure script finds no tinfo headers in the buildroot,
it searches for them on the host's rootfs and when found there,
it marks tinfo as present even when there's no compatible library
installed for the target architecture. That causes the build to fail
during cross-compiling.
The above switch explicitly says we don't want tinfo.
2015-06-30 15:04:59 +02:00
Dennis Gilmore
ee6d69b122 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-19 01:44:05 +00:00
Jaromir Capik
fa67a47381 Adding STAGE1 bootstrap recipe 2015-06-15 17:11:18 +02:00
Jaromir Capik
c9a44d115f Merge branch 'f22' 2015-06-11 20:58:58 +02:00
Karel Zak
05c81d18b2 2.26.2-1: upgrade 2015-04-30 13:27:55 +02:00
Karel Zak
0b35981e89 2.26.2-1: upgrade to stable release 2015-04-30 12:55:13 +02:00
Karel Zak
3fe05ecbfc 2.26.1-1: upgrade and fix sfdisk bugs 2015-04-13 18:02:32 +02:00
Karel Zak
eab90e03d7 2.26-1: upgrade to stable release 2015-03-03 11:01:52 +01:00
Till Maas
0d11c1c42f Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
2015-02-21 22:16:23 +01:00
Karel Zak
8b794a5fc5 2.26-1: upgrade to stable release 2015-02-19 13:58:32 +01:00
Karel Zak
aa5805ac25 2.26-0.4: fix PPC build 2015-02-10 11:30:36 +01:00
Karel Zak
f6a3ca6784 upload v2.26-rc2 sources 2015-02-05 15:13:57 +01:00
Karel Zak
55f81a38e7 2.26-0.3: upgrade to -rc2 2015-02-05 15:08:35 +01:00
Karel Zak
8e74662110 2.26-0.2: fix #1182778 2015-01-16 12:36:58 +01:00
Karel Zak
d6ff12d6dc 2.26-0.1: upgrade to -rc1 2015-01-15 15:01:38 +01:00
Karel Zak
34a74aadf6 2.25.2-2: CVE-2014-9114 2014-11-27 14:39:25 +01:00
Karel Zak
89d447eb6c 2.25.2: new upstream version 2014-10-24 15:54:22 +02:00
Karel Zak
f789f0d9fc 2.25.1: new upstream version 2014-09-03 12:57:18 +02:00
Karel Zak
d4fa6b5537 Merge branch 'f21'
Conflicts:
	util-linux.spec
2014-08-27 16:19:51 +02:00
Karel Zak
b079edfd15 2.25.1-rc1: new upstream version 2014-08-27 15:53:32 +02:00
71fd605ed8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 07:20:06 +00:00
8d539d225f - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-18 07:19:54 +00:00
5de818c896 fix license handling 2014-08-06 13:05:20 +02:00
ab1e5c59d6 fix license handling 2014-08-06 13:04:29 +02:00
Karel Zak
361265db38 2.25-2: fix unit files usage with in subpackages 2014-07-24 10:34:39 +02:00
Karel Zak
9165bd23fd 2.25-1: new upstream version
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-07-22 12:30:50 +02:00
Karel Zak
1fc81bb819 fix changelog date 2014-07-02 12:35:09 +02:00
Karel Zak
4be87e9faa 2.25-0.3: upgrade to -rc2 2014-07-02 12:31:03 +02:00
Peter Jones
9016a84fba Fix libblkid's squashfs probe return checking.
Related: rhbz#1112315
2014-06-25 17:21:26 -04:00
Peter Jones
594dffa0d4 Fix libblkid's squashfs probe return checking.
Related: rhbz#1112315
2014-06-25 17:18:13 -04:00
Karel Zak
b06e73cfce 2.25-0.1: upgrade 2014-06-19 14:51:54 +02:00
Dennis Gilmore
5c303e7460 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-07 22:08:12 -05:00
Kalev Lember
299715637f Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 2014-05-28 12:25:37 +02:00
Karel Zak
a8e3fb405f 2.24.2-4: #1094935 - use systemd_post for uuidd 2014-05-12 11:37:27 +02:00
Karel Zak
ec1e4fccb3 2.24.2-3: #1090638 - remove pam_securetty.so from .pamd files 2014-05-12 10:41:52 +02:00
Karel Zak
f708bc4f81 2.24.2-2: add missing -n uuidd 2014-05-07 12:33:19 +02:00
Karel Zak
d9d58da0e7 2.24.2-2: use systemd scriptlets 2014-05-07 12:29:27 +02:00
Karel Zak
90488bdc3b 2.24.2-1: upgrade 2014-04-25 10:25:56 +02:00
Karel Zak
aca47746da 2.24.1-2: use autosetup 2014-01-30 09:50:54 +01:00
Karel Zak
ea09323fa7 2.24.1: upgrade 2014-01-21 09:54:54 +01:00
Karel Zak
120f8c1351 2.24-2: #1031262 2013-11-18 11:38:33 +01:00
Karel Zak
3c3df501f7 2.24-1: upgrade, #1022217, nologin 2013-10-23 12:22:38 +02:00
Karel Zak
636ae6f91d 2.24-0.1: upgrade
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-27 15:09:27 +02:00
Karel Zak
f16c031219 2.23.2-4: #1005566 #1005194 2013-09-10 10:40:39 +02:00
Karel Zak
a6e628e5e7 2.23.2-3: #921498 2013-09-10 10:40:28 +02:00
Karel Zak
49ff57a01e 2.23.2-3: #950497 2013-09-10 10:40:21 +02:00
Karel Zak
2cfecf3529 2.23.2-3: #987787 2013-09-10 10:40:12 +02:00
Karel Zak
706e746809 2.23.2-3: rename patches 2013-09-10 10:39:59 +02:00
Karel Zak
d7262717be 2.23.2-3: refresh patches
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-10 10:39:48 +02:00
Karel Zak
5a1ed95fbe 2.23.2-2: fix 990083
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-01 09:59:14 +02:00
Karel Zak
2919d71edd 2.23.2-1: upgrade
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-07-31 14:57:08 +02:00
Karel Zak
bf69284dde 2.23.1-3: fix #972457 (agetty)
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-06-13 11:40:47 +02:00
Karel Zak
e1b05c26c4 add missing patch 2013-06-05 14:55:07 +02:00
Karel Zak
85ffd93331 2.23.1-2: fix #962145 2013-06-05 14:50:03 +02:00
Karel Zak
067da383fc 2.23.1: upgrade 2.23 -> 2.23.1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-28 12:24:56 +02:00
Karel Zak
d2b0e417cf Merge branch 'master' into f19 2013-04-25 13:26:38 +02:00
Karel Zak
506ce7948f 2.23-1: upgrade 2.23-rc2 -> 2.23
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-25 13:09:58 +02:00
Karel Zak
1ae81e57b4 2.23-0.7: remove unused patches
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-15 11:36:37 +02:00
Karel Zak
19ed00a32f 2.23-0.6: 2.23-0.6: 2.23-0.6: 2.23-0.6: 2.23-0.6: 2.23-0.6: remove unused patches
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-15 11:00:04 +02:00
Karel Zak
59ea5186b7 2.23-0.6: commit uncommitted changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-15 10:39:36 +02:00
Karel Zak
3fc0e67f32 2.23-0.6: remove floppy from util-linux
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-15 10:37:16 +02:00
Karel Zak
379232cd95 2.23-0.5: fix #948274
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-12 15:32:50 +02:00
Karel Zak
7bc31e71b7 2.23-0.4: upgrade to -rc2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-11 00:32:07 +02:00
Karsten Hopp
3d430624ce merge F19 patches to fix builds on bigendian arches 2013-04-08 15:10:48 +02:00
Karel Zak
4a3cb48228 2.23-0.3: fix build for s390
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 12:13:24 +01:00
Karel Zak
4788cbd6e7 2.23-0.2: libmount fixes
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 10:53:32 +01:00
Karel Zak
27a5499f1e 2.23-0.1: upgrade to uspream 2.23-rc1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-27 10:45:15 +01:00
Karel Zak
2c19cdfe49 2.23-0.1: upgrade to uspream 2.23-rc1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-03-22 14:10:10 +01:00
Karel Zak
c2496a27a2 2.22.2-6: #912778
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-20 12:45:51 +01:00
Karel Zak
cb9405c20e 2.22.2-5: #902512, refresh patches
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-20 12:44:06 +01:00
Karel Zak
2a4e9f041e 2.22.2-4: spec file cleanup
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-06 10:30:04 +01:00
Karel Zak
8e3b51d51a 2.22.2-3
- fix #882305 - agetty: unstable /dev/tty* permissions
- fix #885314 - hexdump segfault
- fix #896447 - No newlines in piped "cal" command
- fix libblkid cache usage (upstream patch)
- fix #905008 - uuidd: /usr/sbin/uuidd has incorrect file permissions

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-02-03 17:13:24 +01:00
Karel Zak
1bc2448b90 2.22.2-2: fix #889888
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-01-15 15:13:07 +01:00
Karel Zak
0a456518f3 2.22.2-1: upgrade
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-12-13 13:16:43 +01:00
Karel Zak
dff9e6fd53 2.22.1-5
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-19 16:11:38 +01:00
Karel Zak
ead2073dab fix spec file
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-16 13:11:56 +01:00
Karel Zak
84d2be4ab3 2.22.1-4: #872787
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-16 13:00:20 +01:00
Karel Zak
7443d56081 2.22.1-3: enable su(1) and runuser(1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-01 15:09:04 +01:00
Karel Zak
2adc0e74a6 Merge branch 'f18' 2012-11-01 10:46:15 +01:00
Karel Zak
4d123a0a11 2.22.1-2: apply upstream 2.22.2 patches
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-01 10:28:02 +01:00
Karel Zak
5fd3817ee5 2.22.1-1: upgrade
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-11 11:59:30 +02:00
Karel Zak
e79ab2d9de 2.22.1-1: upgrade
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-10 17:12:15 +02:00
Karel Zak
82639d6500 2.22-2: remove obsolete references to e2fsprogs
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-03 09:42:34 +02:00
Karel Zak
49e6ba1400 2.22-2: remove obsolete references to e2fsprogs
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-10-03 09:42:04 +02:00
Karel Zak
1de1774f06 2.22-1: upgrade, enable eject, fix #853164, #851230
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-09-06 13:44:34 +02:00
Karel Zak
1d0642d057 2.22-1: upgrade, enable eject, fix #853164, #851230
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-09-06 12:51:38 +02:00
Karel Zak
e5224a209a 2.22-0.1: upgrade to new upstream release
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-16 15:23:02 +02:00
Karel Zak
0d8c506be7 2.22-0.1: upgrade to new upstream release
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-08-16 15:22:02 +02:00
Dennis Gilmore
7518e4396c Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-27 03:58:13 -05:00
Karel Zak
77dc49ad7c 2.21.2-2: replace udev dependenceis with systemd
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-13 10:38:00 +02:00
Karel Zak
a887e3b8da 2.21.2-1: upgrade to bugfix release 2.21.2
- fix #814699 - namei(1) incorrectly resolves relative symlinks
- fix #820707 - Impossible to unmount nfsv4/krb5 mounts after network disconnect
- fix #816877 - libmount does not close device fd before mount(2)
- fix #822705 - unable to login after installing

Signed-off-by: Karel Zak <kzak@redhat.com>
2012-05-25 13:44:50 +02:00
Karel Zak
32be86ade7 2.21.1-1: upgrade to stable release
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-30 13:48:09 +02:00
Karel Zak
7cb4cff5d3 2.21-1: upgrade to stable release
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-24 13:37:21 +01:00
Orion Poplawski
6c2b43a945 Add Requires(post): coreutils to libblkid 2012-02-17 14:45:10 -07:00
Karel Zak
952f94ffaf 2.21-0.2: fix #788703
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-09 10:48:05 +01:00
Karel Zak
f6117ff853 2.21-0.1: upgrade to v2.21-rc2
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-07 14:12:06 +01:00
Harald Hoyer
b2fdd8fbf3 install everything in /usr
This patch is needed for the /usr-move feature
https://fedoraproject.org/wiki/Features/UsrMove

This package requires now 'filesystem' >= 3, which is only installable
on a system which has /bin, /sbin, /lib, /lib64 as symlinks to /usr and
not regular directories. The 'filesystem' package acts as a guard, to
prevent *this* package to be installed on old unconverted systems.

New installations will have the 'filesystem' >=3 layout right away, old
installations need to be converted with anaconda or dracut first; only
after that, the 'filesystem' package, and also *this* package can be
installed.

Packages *should* not install files in /bin, /sbin, /lib, /lib64, but
only in the corresponding directories in /usr. Packages *must* not
install conflicting files with the same names in the corresponding
directories in / and /usr. Especially compatibilty symlinks must not be
installed.

Feel free to modify any of the changes to the spec file, but keep the
above in mind.
2012-01-25 15:09:03 +01:00
Dennis Gilmore
d1bad96edd - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-14 01:41:40 -06:00
Karel Zak
8587dd2a9a 2.20.1-3: #748216, remove ddate(1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-22 16:32:30 +01:00
Dennis Gilmore
9966c1fdc6 - Rebuilt for glibc bug#747377 2011-10-26 19:28:12 -05:00
Karel Zak
8a8438a080 2.20.1-1: upgrade to the release 2.20.1
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-20 12:01:01 +02:00
Karel Zak
dc4135e724 2.20-1: upgrade to stable 2.20
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-29 14:27:52 +02:00
Karel Zak
16cfb1591e 2.20.0.2: upgrade to -rc2
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-17 11:44:15 +02:00
Karel Zak
c8007f2ee2 2.20-0.1: upgrade to 2.20-rc1
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-02 16:56:01 +02:00
42 changed files with 3398 additions and 3423 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

92
.gitignore vendored
View file

@ -14,3 +14,95 @@
/util-linux-2.20-rc2.tar.bz2
/util-linux-2.20.tar.bz2
/util-linux-2.20.1.tar.bz2
/util-linux-2.21-rc2.tar.xz
/util-linux-2.21.tar.xz
/util-linux-2.21.1.tar.xz
/util-linux-2.21.2.tar.xz
/util-linux-2.22-rc2.tar.xz
/util-linux-2.22.tar.xz
/util-linux-2.22.1.tar.xz
/util-linux-2.22.2.tar.xz
/util-linux-2.23-rc1.tar.xz
/util-linux-2.23-rc2.tar.xz
/util-linux-2.23.tar.xz
/util-linux-2.23.1.tar.xz
/util-linux-2.23.2.tar.xz
/util-linux-2.24-rc1.tar.xz
/util-linux-2.24.tar.xz
/util-linux-2.24.1.tar.xz
/util-linux-2.24.2.tar.xz
/util-linux-2.25-rc1.tar.xz
/util-linux-2.25-rc2.tar.xz
/util-linux-2.25.tar.xz
/util-linux-2.25.1-rc1.tar.xz
/util-linux-2.25.1.tar.xz
/util-linux-2.25.2.tar.xz
/util-linux-2.26-rc1.tar.xz
/util-linux-2.26-rc2.tar.xz
/util-linux-2.26.tar.xz
/util-linux-2.26.2.tar.xz
/util-linux-2.27-rc1.tar.xz
/util-linux-2.27-rc2.tar.xz
/util-linux-2.27.tar.xz
/util-linux-2.27.1.tar.xz
/util-linux-2.28-rc1.tar.xz
/util-linux-2.28-rc2.tar.xz
/util-linux-2.28.tar.xz
/util-linux-2.28.1.tar.xz
/util-linux-2.28.2.tar.xz
/util-linux-2.29-rc1.tar.xz
/util-linux-2.29-rc2.tar.xz
/util-linux-2.29.tar.xz
/util-linux-2.29.1.tar.xz
/util-linux-2.29.2.tar.xz
/util-linux-2.30-rc1.tar.xz
/util-linux-2.30.tar.xz
/util-linux-2.30.1.tar.xz
/util-linux-2.30.2.tar.xz
/util-linux-2.31-rc1.tar.xz
/util-linux-2.31-rc2.tar.xz
/util-linux-2.31.tar.xz
/util-linux-2.32-rc1.tar.xz
/util-linux-2.32.tar.xz
/util-linux-2.32.1.tar.xz
/util-linux-2.33-rc2.tar.xz
/util-linux-2.33.1.tar.xz
/util-linux-2.33.2.tar.xz
/util-linux-2.34-rc1.tar.xz
/util-linux-2.34-rc2.tar.xz
/util-linux-2.34.tar.xz
/util-linux-2.35-rc1.tar.xz
/util-linux-2.35-rc1-20-63f8.tar.xz
/util-linux-2.35-rc2.tar.xz
/util-linux-2.35.tar.xz
/util-linux-2.35.1.tar.xz
/util-linux-2.35.2.tar.xz
/util-linux-2.36.tar.xz
/util-linux-2.36.1.tar.xz
/util-linux-2.36.2.tar.xz
/util-linux-2.37-rc2.tar.xz
/util-linux-2.37.tar.xz
/util-linux-2.37.2.tar.xz
/util-linux-2.38-rc1.tar.xz
/util-linux-2.38-rc3.tar.xz
/util-linux-2.38.tar.xz
/util-linux-2.38.1.tar.xz
/util-linux-2.39-rc1.tar.xz
/util-linux-2.39-rc2.tar.xz
/util-linux-2.39-rc3.tar.xz
/util-linux-2.39.tar.xz
/util-linux-2.39.1.tar.xz
/util-linux-2.39.2.tar.xz
/util-linux-2.39.3.tar.xz
/util-linux-2.40-rc1.tar.xz
/util-linux-2.40.tar.xz
/util-linux-2.40.1.tar.xz
/util-linux-2.40.2.tar.xz
/util-linux-2.40.4.tar.xz
/util-linux-2.41.tar.xz
/util-linux-2.41.1.tar.xz
/util-linux-2.41.2.tar.xz
/util-linux-2.41.3.tar.xz
/util-linux-2.42.tar.xz
/util-linux-2.42.1.tar.xz
/util-linux-2.42.2.tar.xz

View file

@ -0,0 +1,27 @@
From a2357184ff3dc3beb001fcb12e1e4c0dcf8d0dbd Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 2 Dec 2025 16:15:44 +0100
Subject: login: use O_CREAT on lastlog
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=151635
Signed-off-by: Karel Zak <kzak@redhat.com>
---
login-utils/login.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/login-utils/login.c b/login-utils/login.c
index 321f9d6ce..edc69fd9a 100644
--- a/login-utils/login.c
+++ b/login-utils/login.c
@@ -682,7 +682,7 @@ static void log_lastlog(struct login_context *cxt)
sa.sa_handler = SIG_IGN;
sigaction(SIGXFSZ, &sa, &oldsa_xfsz);
- fd = open(_PATH_LASTLOG, O_RDWR, 0);
+ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0);
if (fd < 0)
goto done;
offset = cxt->pwd->pw_uid * sizeof(ll);
--
2.51.1

View file

@ -0,0 +1,27 @@
From 617a887a6ec7e433f6a9f4c60592ed38b12b9f18 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 2 Dec 2025 16:17:55 +0100
Subject: login: add /run/motd.d` to the hardcoded MOTD_FILE
Addresses: https://github.com/coreos/console-login-helper-messages/issues/60
Signed-off-by: Karel Zak <kzak@redhat.com>
---
include/pathnames.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/pathnames.h b/include/pathnames.h
index 34ba11ca3..c91a077e1 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -41,7 +41,7 @@
#ifndef _PATH_MAILDIR
# define _PATH_MAILDIR "/var/spool/mail"
#endif
-#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/etc/motd"
+#define _PATH_MOTDFILE "/usr/share/misc/motd:/run/motd:/run/motd.d:/etc/motd:/etc/motd.d"
#ifndef _PATH_NOLOGIN
# define _PATH_NOLOGIN "/etc/nologin"
#endif
--
2.51.1

12
STAGE1-util-linux Normal file
View file

@ -0,0 +1,12 @@
srpm util-linux
mcd $BUILDDIR/$1
cat <<EOF > config.cache
ax_cv_have_tls=yes
scanf_cv_alloc_modifier=ms
EOF
$SRC/${1}-*/configure $TCONFIGARGS --without-ncurses --without-tinfo \
--prefix=/usr --libexecdir=/usr/lib${SUFFIX} --libdir=/usr/lib${SUFFIX} \
--disable-wall --cache-file=config.cache --without-python --without-systemd
notparallel
make $J V=1
make $J install DESTDIR=${ROOTFS}

2
adjtime Normal file
View file

@ -0,0 +1,2 @@
0.0 0 0.0
0

2341
changelog Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,63 +0,0 @@
.\" $OpenBSD: nologin.8,v 1.8 1999/06/04 02:45:19 aaron Exp $
.\" $NetBSD: nologin.8,v 1.3 1995/03/18 14:59:09 cgd Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)nologin.8 8.1 (Berkeley) 6/19/93
.\"
.Dd February 15, 1997
.Dt NOLOGIN 8
.Os
.Sh NAME
.Nm nologin
.Nd politely refuse a login
.Sh SYNOPSIS
.Nm nologin
.Sh DESCRIPTION
.Nm
displays a message that an account is not available and
exits non-zero.
It is intended as a replacement shell field for accounts that
have been disabled.
.Pp
If the file
.Pa /etc/nologin.txt
exists,
.Nm
displays its contents to the user instead of the default message.
.Sh SEE ALSO
.Xr login 1
.Sh HISTORY
The
.Nm
command appeared in
.Bx 4.4 .

View file

@ -1,58 +0,0 @@
/* $OpenBSD: nologin.c,v 1.2 1997/04/04 16:51:37 millert Exp $ */
/*
* Copyright (c) 1997, Jason Downs. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include <sys/types.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
/* Distinctly different from _PATH_NOLOGIN. */
#define _PATH_NOLOGIN_TXT "/etc/nologin.txt"
#define DEFAULT_MESG "This account is currently not available.\n"
/*ARGSUSED*/
int main(argc, argv)
int argc;
char *argv[];
{
int nfd, nrd;
char nbuf[128];
nfd = open(_PATH_NOLOGIN_TXT, O_RDONLY);
if (nfd < 0) {
write(STDOUT_FILENO, DEFAULT_MESG, strlen(DEFAULT_MESG));
exit (1);
}
while ((nrd = read(nfd, nbuf, sizeof(nbuf))) > 0)
write(STDOUT_FILENO, nbuf, nrd);
close (nfd);
exit (1);
}

5
plans/ci.fmf Normal file
View file

@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt

View file

@ -1,2 +1 @@
079b37517fd4e002a2e6e992e8b4e361 util-linux-2.20.1.tar.bz2
a02aac97c74259ca1b24972c89147ca4 floppy-0.18.tar.bz2
SHA512 (util-linux-2.42.2.tar.xz) = 7415add0be2930654e322830808dde03ff6d511bd357f0679e6b6287a13ca79fe58ce4ac05edef86b76fb381b3a36ca2da9d3c31b5dc0a1d889c203156a57277

64
tests/various/Makefile Normal file
View file

@ -0,0 +1,64 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/util-linux/various
# Description: This test groups small sanity and regression tests for util-linux
# Author: Miroslav Vadkerti <mvadkert@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2013 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing
# to use, modify, copy, or redistribute it subject to the terms
# and conditions of the GNU General Public License version 2.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export TEST=/CoreOS/util-linux/Sanity/various
export TESTVERSION=1.0
BUILT_FILES=
FILES=$(METADATA) runtest.sh Makefile PURPOSE
.PHONY: all install download clean
run: $(FILES) build
./runtest.sh
build: $(BUILT_FILES)
test -x runtest.sh || chmod a+x runtest.sh
clean:
rm -f *~ $(BUILT_FILES)
include /usr/share/rhts/lib/rhts-make.include
$(METADATA): Makefile
@echo "Owner: Miroslav Vadkerti <mvadkert@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "Description: This test groups small sanity and regression tests for util-linux" >> $(METADATA)
@echo "Type: Sanity" >> $(METADATA)
@echo "TestTime: 10m" >> $(METADATA)
@echo "RunFor: util-linux" >> $(METADATA)
@echo "Requires: util-linux util-linux-user" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
@echo "Confidential: no" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
@echo "Releases: -RHEL3 -RHEL4 -RHEL5Server -RHEL5Client -RHEL6" >> $(METADATA)
rhts-lint $(METADATA)

3
tests/various/PURPOSE Normal file
View file

@ -0,0 +1,3 @@
PURPOSE of /CoreOS/util-linux/various
Description: This test groups small sanity and regression tests for util-linux
Author: Miroslav Vadkerti <mvadkert@redhat.com>

13
tests/various/main.fmf Normal file
View file

@ -0,0 +1,13 @@
summary: This test groups small sanity and regression tests for util-linux
description: ''
contact: Miroslav Vadkerti <mvadkert@redhat.com>
component:
- util-linux
test: ./runtest.sh
framework: beakerlib
recommend:
- util-linux
- util-linux-user
duration: 10m
extra-summary: /CoreOS/util-linux/Sanity/various
extra-task: /CoreOS/util-linux/Sanity/various

51
tests/various/runtest.sh Executable file
View file

@ -0,0 +1,51 @@
#!/bin/bash
# vim: dict=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/util-linux/various
# Description: This test groups small sanity and regression tests for util-linux
# Author: Miroslav Vadkerti <mvadkert@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2013 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing
# to use, modify, copy, or redistribute it subject to the terms
# and conditions of the GNU General Public License version 2.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="util-linux"
rlJournalStart
rlPhaseStartSetup
rlAssertRpm $PACKAGE
rlPhaseEnd
rlPhaseStartTest "return code of chfn should be always 1 in case failure"
rlRun "chfn -f a:b" 1
rlRun "chfn -o a:b" 1
rlRun "chfn -p a:b" 1
rlRun "chfn -h a:b" 1
rlRun "chfn -x a:b" 1
rlRun "chfn -f a -o b -p c -h d unknown-user" 1
rlPhaseEnd
rlPhaseStartCleanup
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

View file

@ -1,103 +0,0 @@
diff -up util-linux-2.19/floppy-0.18/floppyfloppy.c.kzak util-linux-2.19/floppy-0.18/floppyfloppy.c
--- util-linux-2.19/floppy-0.18/floppyfloppy.c.kzak 2009-09-24 03:36:33.000000000 +0200
+++ util-linux-2.19/floppy-0.18/floppyfloppy.c 2011-03-07 10:40:42.000000000 +0100
@@ -271,6 +271,33 @@ static RETSIGTYPE sighandler(int signum)
#endif
}
+/* -1=error, 1=true, 0=false */
+static int check_generic(const char *dev, int n)
+{
+ struct floppy_struct param;
+ int fd;
+
+ if ((fd=open(dev, O_RDONLY)) < 0)
+ {
+ perror(dev);
+ return -1;
+ }
+ if (ioctl(fd,FDGETPRM,(long) &param) < 0)
+ {
+ perror(dev);
+ close(fd);
+ return -1;
+ }
+ close(fd);
+
+ if (param.sect==floppy_type[n].sectors &&
+ param.head==floppy_type[n].heads &&
+ param.track==floppy_type[n].tracks)
+ /* generic device uses expected format */
+ return 1;
+
+ return 0;
+}
static int do_format(const char *dev, int fmtnum,
int (*fmt_func)(const char *, int), int flags)
@@ -282,6 +309,7 @@ static int do_format(const char *dev, in
struct format_descr curtrack;
int pct;
struct stat stat_buf;
+ int gen = 0;
int i, j;
char *devname;
@@ -304,23 +332,52 @@ static int do_format(const char *dev, in
strcat(strcpy(devname, dev), floppy_type[fmtnum].dev);
+ if (stat(devname, &stat_buf)==-1 && errno==ENOENT)
+ {
+ /* /dev/fd0xxxxx doesn't exist ...try to use generic device
+ *
+ * Note: we needn't size specific device if the generic device uses
+ * right floppy format (FDGETPRM). -- Karel Zak [30/09/2005]
+ */
+ if ((gen = check_generic(dev, fmtnum))==1) /* true */
+ {
+ fprintf(stderr, _("WARNING: size specific device %s doesn't exist, using generic device: %s\n"),
+ devname, dev);
+ strcpy(devname, dev);
+ }
+ else if (gen==0) /* false */
+ {
+ fprintf(stderr, _("ERROR: size specific device %1$s doesn't exist. Use \"MAKEDEV %1$s\" and try it again.\n"), devname);
+ return (1);
+ }
+ else /* error -- no floppy medium or device? */
+ return(1);
+ }
fd=open(devname, O_WRONLY);
if (fd < 0)
{
perror(devname);
return (1);
}
-
- if (fstat(fd, &stat_buf) ||
- !S_ISBLK(stat_buf.st_mode) ||
- MINOR_DEV(stat_buf.st_rdev) != fmtnum)
+ if (fstat(fd, &stat_buf) < 0)
+ {
+ perror(devname);
+ close(fd);
+ return (1);
+ }
+ if (!S_ISBLK(stat_buf.st_mode))
+ {
+ fprintf(stderr,_("%s: not a block device\n"), devname);
+ close(fd);
+ return (1);
+ }
+ if (gen==0 && MINOR_DEV(stat_buf.st_rdev) != fmtnum)
{
errno=EINVAL;
perror(devname);
close(fd);
return (1);
}
-
if (ioctl(fd, FDGETPRM, &geo) < 0)
{
perror(devname);

View file

@ -1,11 +0,0 @@
diff -up util-linux-2.19/floppy-0.18/superfloppy.c.kzak util-linux-2.19/floppy-0.18/superfloppy.c
--- util-linux-2.19/floppy-0.18/superfloppy.c.kzak 2009-09-23 02:47:26.000000000 +0200
+++ util-linux-2.19/floppy-0.18/superfloppy.c 2011-03-07 10:37:20.000000000 +0100
@@ -13,6 +13,7 @@
#include <popt.h>
#include <locale.h>
#include <libintl.h>
+#include <locale.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

View file

@ -1,32 +0,0 @@
From fa7e0d6d442de9f5940f99fd93f4522602439131 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Mon, 6 Jun 2011 12:35:26 +0200
Subject: [PATCH] lib: [linux_version.c] accommodate two-component linux
version (e.g. 3.0)
Signed-off-by: Karel Zak <kzak@redhat.com>
---
lib/linux_version.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/linux_version.c b/lib/linux_version.c
index f9fbd8d..ada566a 100644
--- a/lib/linux_version.c
+++ b/lib/linux_version.c
@@ -16,10 +16,10 @@ get_linux_version (void)
return kver;
if (uname (&uts))
kver = 0;
- else if (sscanf (uts.release, "%d.%d.%d", &major, &minor, &teeny) != 3)
- kver = 0;
- else
+ else if (sscanf (uts.release, "%d.%d.%d", &major, &minor, &teeny) == 3)
kver = KERNEL_VERSION (major, minor, teeny);
+ else if (sscanf (uts.release, "%d.%d", &major, &minor) == 2)
+ kver = KERNEL_VERSION (major, minor, 0);
return kver;
}
--
1.7.5.2

View file

@ -1,290 +0,0 @@
From 5c60a0eab5155043f58fa88909d89e0b06cad2f8 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 31 May 2011 18:01:36 +0200
Subject: [PATCH] libmount: add mnt_table_is_mounted()
Signed-off-by: Karel Zak <kzak@redhat.com>
---
shlibs/mount/src/libmount.h.in | 3 +
shlibs/mount/src/libmount.sym | 1 +
shlibs/mount/src/tab.c | 210 ++++++++++++++++++++++++++++++++++++++++
shlibs/mount/src/tab_update.c | 2 +-
4 files changed, 215 insertions(+), 1 deletions(-)
diff --git a/shlibs/mount/src/libmount.h.in b/shlibs/mount/src/libmount.h.in
index 3ea2f92..1522208 100644
--- a/shlibs/mount/src/libmount.h.in
+++ b/shlibs/mount/src/libmount.h.in
@@ -308,6 +308,9 @@ extern int mnt_table_find_next_fs(struct libmnt_table *tb,
int (*match_func)(struct libmnt_fs *, void *), void *userdata,
struct libmnt_fs **fs);
+extern int mnt_table_is_fs_mounted(struct libmnt_table *tb, struct libmnt_fs *fstab_fs);
+
+
/* tab_update.c */
extern struct libmnt_update *mnt_new_update(void);
extern void mnt_free_update(struct libmnt_update *upd);
diff --git a/shlibs/mount/src/libmount.sym b/shlibs/mount/src/libmount.sym
index 0b7c560..a498916 100644
--- a/shlibs/mount/src/libmount.sym
+++ b/shlibs/mount/src/libmount.sym
@@ -195,6 +195,7 @@ global:
mnt_update_is_ready;
mnt_update_set_fs;
mnt_update_table;
+ mnt_table_is_fs_mounted;
local:
*;
};
diff --git a/shlibs/mount/src/tab.c b/shlibs/mount/src/tab.c
index 2a6a235..38a5d5b 100644
--- a/shlibs/mount/src/tab.c
+++ b/shlibs/mount/src/tab.c
@@ -712,6 +712,175 @@ struct libmnt_fs *mnt_table_find_pair(struct libmnt_table *tb, const char *sourc
return NULL;
}
+/*
+ * @tb: /proc/self/mountinfo
+ * @fs: filesystem
+ * @mountflags: MS_BIND or 0
+ * @fsroot: fs-root that will be probably used in the mountinfo file
+ * for @fs after mount(2)
+ *
+ * For btrfs subvolumes this function returns NULL, but @fsroot properly set.
+ *
+ * Returns: entry from @tb that will be used as a source for @fs if the @fs is
+ * bindmount.
+ */
+struct libmnt_fs *mnt_table_get_fs_root(struct libmnt_table *tb,
+ struct libmnt_fs *fs,
+ unsigned long mountflags,
+ char **fsroot)
+{
+ char *root = NULL, *mnt = NULL;
+ const char *fstype;
+ struct libmnt_fs *src_fs = NULL;
+
+ assert(tb);
+ assert(fs);
+ assert(fsroot);
+
+ DBG(TAB, mnt_debug("lookup fs-root for %s", mnt_fs_get_source(fs)));
+
+ fstype = mnt_fs_get_fstype(fs);
+
+ if (mountflags & MS_BIND) {
+ const char *src, *src_root;
+
+ DBG(TAB, mnt_debug("fs-root for bind"));
+
+ src = mnt_resolve_spec(mnt_fs_get_source(fs), tb->cache);
+ if (!src)
+ goto err;
+
+ mnt = mnt_get_mountpoint(src);
+ if (!mnt)
+ goto err;
+
+ root = mnt_get_fs_root(src, mnt);
+
+ src_fs = mnt_table_find_target(tb, mnt, MNT_ITER_BACKWARD);
+ if (!src_fs) {
+ DBG(TAB, mnt_debug("not found '%s' in mountinfo -- using default", mnt));
+ goto dflt;
+ }
+
+ /* on btrfs the subvolume is used as fs-root in
+ * /proc/self/mountinfo, so we have to get the original subvolume
+ * name from src_fs and prepend the subvolume name to the
+ * fs-root path
+ */
+ src_root = mnt_fs_get_root(src_fs);
+ if (src_root && !startswith(root, src_root)) {
+ size_t sz = strlen(root) + strlen(src_root) + 1;
+ char *tmp = malloc(sz);
+
+ if (!tmp)
+ goto err;
+ snprintf(tmp, sz, "%s%s", src_root, root);
+ free(root);
+ root = tmp;
+ }
+ }
+
+ /*
+ * btrfs-subvolume mount -- get subvolume name and use it as a root-fs path
+ */
+ else if (fstype && !strcmp(fstype, "btrfs")) {
+ char *vol = NULL, *p;
+ size_t sz, volsz = 0;
+
+ if (mnt_fs_get_option(fs, "subvol", &vol, &volsz))
+ goto dflt;
+
+ DBG(TAB, mnt_debug("setting FS root: btrfs subvol"));
+
+ sz = volsz;
+ if (*vol != '/')
+ sz++;
+ root = malloc(sz + 1);
+ if (!root)
+ goto err;
+ p = root;
+ if (*vol != '/')
+ *p++ = '/';
+ memcpy(p, vol, volsz);
+ *(root + sz) = '\0';
+ }
+dflt:
+ if (!root) {
+ root = strdup("/");
+ if (!root)
+ goto err;
+ }
+ *fsroot = root;
+
+ DBG(TAB, mnt_debug("FS root result: %s", root));
+
+ free(mnt);
+ return src_fs;
+err:
+ free(root);
+ free(mnt);
+ return NULL;
+}
+
+/**
+ * mnt_table_is_mounted:
+ * @tb: /proc/self/mountinfo file
+ * @fstab_fs: /etc/fstab entry
+ *
+ * Checks if the @fstab_fs entry is already in the @tb table. The "swap"
+ * is ignored.
+ *
+ * TODO: check for loopdev (see mount/mount.c is_fstab_entry_mounted().
+ *
+ * Returns: 0 or 1
+ */
+int mnt_table_is_fs_mounted(struct libmnt_table *tb, struct libmnt_fs *fstab_fs)
+{
+ char *root = NULL;
+ struct libmnt_fs *src_fs;
+ const char *src, *tgt;
+ int flags = 0, rc = 0;
+
+ assert(tb);
+ assert(fstab_fs);
+
+ if (fstab_fs->flags & MNT_FS_SWAP)
+ return 0;
+
+ if (mnt_fs_get_option(fstab_fs, "bind", NULL, NULL) == 0)
+ flags = MS_BIND;
+
+ src_fs = mnt_table_get_fs_root(tb, fstab_fs, flags, &root);
+ if (src_fs)
+ src = mnt_fs_get_srcpath(src_fs);
+ else
+ src = mnt_resolve_spec(mnt_fs_get_source(fstab_fs), tb->cache);
+
+ tgt = mnt_fs_get_target(fstab_fs);
+
+ if (tgt || src || root) {
+ struct libmnt_iter itr;
+ struct libmnt_fs *fs;
+
+ mnt_reset_iter(&itr, MNT_ITER_FORWARD);
+
+ while(mnt_table_next_fs(tb, &itr, &fs) == 0) {
+ const char *s = mnt_fs_get_srcpath(fs),
+ *t = mnt_fs_get_target(fs),
+ *r = mnt_fs_get_root(fs);
+
+ if (s && t && r && !strcmp(t, tgt) &&
+ !strcmp(s, src) && !strcmp(r, root))
+ break;
+ }
+ if (fs)
+ rc = 1; /* success */
+ }
+
+ free(root);
+ return rc;
+}
+
#ifdef TEST_PROGRAM
static int parser_errcb(struct libmnt_table *tb, const char *filename, int line)
@@ -869,6 +1038,46 @@ done:
return rc;
}
+static int test_is_mounted(struct libmnt_test *ts, int argc, char *argv[])
+{
+ struct libmnt_table *tb = NULL, *fstab = NULL;
+ struct libmnt_fs *fs;
+ struct libmnt_iter *itr = NULL;
+ int rc;
+
+ tb = mnt_new_table_from_file("/proc/self/mountinfo");
+ if (!tb) {
+ fprintf(stderr, "failed to parse mountinfo\n");
+ return -1;
+ }
+
+ fstab = create_table(argv[1]);
+ if (!fstab)
+ goto done;
+
+ itr = mnt_new_iter(MNT_ITER_FORWARD);
+ if (!itr)
+ goto done;
+
+ while(mnt_table_next_fs(fstab, itr, &fs) == 0) {
+ if (mnt_table_is_fs_mounted(tb, fs))
+ printf("%s already mounted on %s\n",
+ mnt_fs_get_source(fs),
+ mnt_fs_get_target(fs));
+ else
+ printf("%s not mounted on %s\n",
+ mnt_fs_get_source(fs),
+ mnt_fs_get_target(fs));
+ }
+
+ rc = 0;
+done:
+ mnt_free_table(tb);
+ mnt_free_table(fstab);
+ mnt_free_iter(itr);
+ return rc;
+}
+
int main(int argc, char *argv[])
{
struct libmnt_test tss[] = {
@@ -877,6 +1086,7 @@ int main(int argc, char *argv[])
{ "--find-backward", test_find_bw, "<file> <source|target> <string>" },
{ "--find-pair", test_find_pair, "<file> <source> <target>" },
{ "--copy-fs", test_copy_fs, "<file> copy root FS from the file" },
+ { "--is-mounted", test_is_mounted, "<fstab> check what from <file> are already mounted" },
{ NULL }
};
diff --git a/shlibs/mount/src/tab_update.c b/shlibs/mount/src/tab_update.c
index 5abb566..9817f20 100644
--- a/shlibs/mount/src/tab_update.c
+++ b/shlibs/mount/src/tab_update.c
@@ -410,7 +410,7 @@ static int set_fs_root(struct libmnt_fs *result, struct libmnt_fs *fs, unsigned
mnt_fs_set_fstype(result, mnt_fs_get_fstype(src_fs));
/* on btrfs the subvolume is used as fs-root in
- * /proc/self/mountinfo, so we have get the original subvolume
+ * /proc/self/mountinfo, so we have to get the original subvolume
* name from src_fs and prepend the subvolume name to the
* fs-root path
*/
--
1.7.5.2

View file

@ -1,105 +0,0 @@
From 0cac8948216a298deaf5fd30837ed9cc80618f80 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 31 May 2011 18:02:29 +0200
Subject: [PATCH] mount: use libmount to detect already mounted bind mounts
It's pretty tricky to detect that a bind mount from fstab is already
mounted on system without /etc/mtab. Let's use functionality from
libmount.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=701176
Signed-off-by: Karel Zak <kzak@redhat.com>
---
mount/mount.c | 42 ++++++++++++++++++++++++++++++++++++++----
1 files changed, 38 insertions(+), 4 deletions(-)
diff --git a/mount/mount.c b/mount/mount.c
index 29963c2..3ba705f 100644
--- a/mount/mount.c
+++ b/mount/mount.c
@@ -212,7 +212,7 @@ static const char *opt_loopdev, *opt_vfstype, *opt_offset, *opt_sizelimit,
*opt_encryption, *opt_speed, *opt_comment, *opt_uhelper;
static int is_readonly(const char *node);
-static int mounted (const char *spec0, const char *node0);
+static int mounted (const char *spec0, const char *node0, struct mntentchn *fstab_mc);
static int check_special_mountprog(const char *spec, const char *node,
const char *type, int flags, char *extra_opts, int *status);
@@ -1562,7 +1562,7 @@ try_mount_one (const char *spec0, const char *node0, const char *types0,
/* The "mount -f" checks for for existing record in /etc/mtab (with
* regular non-fake mount this is usually done by kernel)
*/
- if (!(flags & MS_REMOUNT) && fake && mounted (spec, node))
+ if (!(flags & MS_REMOUNT) && fake && mounted (spec, node, NULL))
die(EX_USAGE, _("mount: according to mtab, "
"%s is already mounted on %s\n"),
spec, node);
@@ -2016,13 +2016,46 @@ mount_one (const char *spec, const char *node, const char *types,
return try_mount_one (spec, node, types, opts, freq, pass, 0);
}
+#ifdef HAVE_LIBMOUNT_MOUNT
+static struct libmnt_table *minfo; /* parsed mountinfo file */
+#endif
+
/* Check if an fsname/dir pair was already in the old mtab. */
static int
-mounted (const char *spec0, const char *node0) {
+mounted (const char *spec0, const char *node0, struct mntentchn *fstab_mc) {
struct mntentchn *mc, *mc0;
const char *spec, *node;
int ret = 0;
+#ifdef HAVE_LIBMOUNT_MOUNT
+ /*
+ * Use libmount to check for already mounted bind mounts on systems
+ * without mtab.
+ */
+ if (fstab_mc && fstab_mc->m.mnt_opts &&
+ mtab_is_a_symlink() && strstr(fstab_mc->m.mnt_opts, "bind")) {
+
+ struct libmnt_fs *fs = mnt_new_fs();
+ int rc = fs ? 0 : -1;
+
+ if (!rc)
+ rc = mnt_fs_set_fstype(fs, fstab_mc->m.mnt_type);
+ if (!rc)
+ rc = mnt_fs_set_source(fs, fstab_mc->m.mnt_fsname);
+ if (!rc)
+ rc = mnt_fs_set_target(fs, fstab_mc->m.mnt_dir);
+ if (!rc)
+ rc = mnt_fs_set_options(fs, fstab_mc->m.mnt_opts);
+ if (!rc && !minfo)
+ minfo = mnt_new_table_from_file("/proc/self/mountinfo");
+ if (!rc && minfo)
+ rc = mnt_table_is_fs_mounted(minfo, fs);
+
+ mnt_free_fs(fs);
+ if (rc == 1)
+ return 1;
+ }
+#endif
/* Handle possible UUID= and LABEL= in spec */
spec = spec_to_devname(spec0);
if (!spec)
@@ -2030,6 +2063,7 @@ mounted (const char *spec0, const char *node0) {
node = canonicalize(node0);
+
mc0 = mtab_head();
for (mc = mc0->nxt; mc && mc != mc0; mc = mc->nxt)
if (streq (spec, mc->m.mnt_fsname) &&
@@ -2050,7 +2084,7 @@ is_fstab_entry_mounted(struct mntentchn *mc, int verbose)
{
struct stat st;
- if (mounted(mc->m.mnt_fsname, mc->m.mnt_dir))
+ if (mounted(mc->m.mnt_fsname, mc->m.mnt_dir, mc))
goto yes;
/* extra care for loop devices */
--
1.7.5.2

View file

@ -1,33 +0,0 @@
From aab72640daa7ee2db3d42fc8278ab86e3aef2d71 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Thu, 2 Jun 2011 14:53:42 +0200
Subject: [PATCH] mount: canonicalize fstab mnt_dir
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=709681
Signed-off-by: Karel Zak <kzak@redhat.com>
---
mount/fstab.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/mount/fstab.c b/mount/fstab.c
index 8ce733b..4fa26b4 100644
--- a/mount/fstab.c
+++ b/mount/fstab.c
@@ -455,7 +455,13 @@ getfs_by_dir (const char *dir) {
cdir = canonicalize(dir);
for (mc = mc0->nxt; mc && mc != mc0; mc = mc->nxt) {
- if (streq(mc->m.mnt_dir, cdir)) {
+ int ok = streq(mc->m.mnt_dir, cdir);
+ if (!ok) {
+ char *dr = canonicalize(mc->m.mnt_dir);
+ ok = dr ? streq(dr, cdir) : 0;
+ free(dr);
+ }
+ if (ok) {
free(cdir);
return mc;
}
--
1.7.5.2

View file

@ -1,76 +0,0 @@
From 067e9b4934372f72b89b2c0442a3d28290834537 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Wed, 29 Jun 2011 09:02:50 +0200
Subject: [PATCH] mount: first look for mountpoint
# mount <device|dir>
The current code looks for a device and then for a mountpoint in
/etc/fstab. This is not user friendly solution. People usually use
# mount /dir
to mount any filesystem. It makes more sense to check for mountpoint
and if not found then for device.
This is also important for bind mounts, for example if you have in
your fstab:
/dev/sda1 /mnt/foo auto defaults
/mnt/foo /mnt/bar none bind
then
# mount /mnt/foo
should be interpreted as the first entry and /dev/sda1 should be
mounted.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=716483
Signed-off-by: Karel Zak <kzak@redhat.com>
---
mount/mount.8 | 11 +++++++++++
mount/mount.c | 4 ++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/mount/mount.8 b/mount/mount.8
index 8982537..e9a52dd 100644
--- a/mount/mount.8
+++ b/mount/mount.8
@@ -101,6 +101,17 @@ the pathname
refers to the root of the filesystem on
.IR device .
+If only directory or device is given, for example:
+.RS
+
+.br
+.BI "mount /dir"
+.br
+
+.RE
+then mount looks for a mountpoint and if not found then for a device in the
+/etc/fstab file.
+
.B The listing and help.
.RS
Three forms of invocation do not actually mount anything:
diff --git a/mount/mount.c b/mount/mount.c
index 3ba705f..00637f5 100644
--- a/mount/mount.c
+++ b/mount/mount.c
@@ -2347,10 +2347,10 @@ getfs(const char *spec, const char *uuid, const char *label)
else if (label)
mc = getfs_by_label(label);
else {
- mc = getfs_by_spec(spec);
+ mc = getfs_by_dir(spec);
if (!mc)
- mc = getfs_by_dir(spec);
+ mc = getfs_by_spec(spec);
}
if (mc)
return mc;
--
1.7.5.4

View file

@ -1,64 +0,0 @@
diff -up util-linux-2.20-rc1/libblkid/libblkid.3.kzak util-linux-2.20-rc1/libblkid/libblkid.3
--- util-linux-2.20-rc1/libblkid/libblkid.3.kzak 2011-07-26 16:43:07.000000000 +0200
+++ util-linux-2.20-rc1/libblkid/libblkid.3 2011-07-29 21:17:20.883777687 +0200
@@ -28,7 +28,7 @@ partitions and block device topology.
.P
The high-level part of the library keeps information about block devices
in a cache file
-.I /etc/blkid.tab
+.I /etc/blkid/blkid.tab
and is verified to still be valid before being returned to the user
(if the user has read permission on the raw block device, otherwise not).
The cache file also allows unprivileged users (normally anyone other
@@ -69,7 +69,7 @@ symlink does not match with LABEL or UUI
.I CACHE_FILE=<path>
Overrides the standard location of the cache file. This setting can be
overridden by the environment variable BLKID_FILE. Default is
-.I /etc/blkid.tab.
+.I /etc/blkid/blkid.tab.
.TP
.I EVALUATE=<methods>
Defines LABEL and UUID evaluation method(s). Currently, the libblkid library
@@ -87,7 +87,7 @@ from Ted Ts'o. The library was subseque
The low-level probing code was rewritten by Karel Zak.
.SH FILES
.TP 18
-.I /etc/blkid.tab
+.I /etc/blkid/blkid.tab
caches data extracted from each recognized block device
.TP
.I /etc/blkid.conf
diff -up util-linux-2.20-rc1/libblkid/src/blkidP.h.kzak util-linux-2.20-rc1/libblkid/src/blkidP.h
--- util-linux-2.20-rc1/libblkid/src/blkidP.h.kzak 2011-07-20 21:55:23.000000000 +0200
+++ util-linux-2.20-rc1/libblkid/src/blkidP.h 2011-07-29 21:17:52.852169993 +0200
@@ -286,7 +286,7 @@ extern char *blkid_strdup(const char *s)
extern char *blkid_strndup(const char *s, const int length);
extern char *blkid_strconcat(const char *a, const char *b, const char *c);
-#define BLKID_CACHE_FILE "/etc/blkid.tab"
+#define BLKID_CACHE_FILE "/etc/blkid/blkid.tab"
#define BLKID_CONFIG_FILE "/etc/blkid.conf"
#define BLKID_ERR_IO 5
diff -up util-linux-2.20-rc1/misc-utils/blkid.8.kzak util-linux-2.20-rc1/misc-utils/blkid.8
--- util-linux-2.20-rc1/misc-utils/blkid.8.kzak 2011-07-20 21:55:23.000000000 +0200
+++ util-linux-2.20-rc1/misc-utils/blkid.8 2011-07-29 21:15:37.312506693 +0200
@@ -79,7 +79,7 @@ same meaning as "KiB") or decimal (10^N)
Read from
.I cachefile
instead of reading from the default cache file
-.IR /etc/blkid.tab .
+.IR /etc/blkid/blkid.tab .
If you want to start with a clean cache (i.e. don't report devices previously
scanned but not necessarily available at this time), specify
.IR /dev/null .
@@ -242,7 +242,7 @@ Display version number and exit.
Write the device cache to
.I writecachefile
instead of writing it to the default cache file
-.IR /etc/blkid.tab .
+.IR /etc/blkid/blkid.tab .
If you don't want to save the cache at all, specify
.IR /dev/null.
If not specified, it will be the same file as that given with the
diff -up util-linux-2.20-rc1/misc-utils/blkid.c.kzak util-linux-2.20-rc1/misc-utils/blkid.c

View file

@ -1,25 +0,0 @@
diff -up util-linux-2.20-rc1/disk-utils/fdformat.8.orig util-linux-2.20-rc1/disk-utils/fdformat.8
--- util-linux-2.20-rc1/disk-utils/fdformat.8.orig 2011-07-20 21:55:23.000000000 +0200
+++ util-linux-2.20-rc1/disk-utils/fdformat.8 2011-07-29 21:08:57.558601033 +0200
@@ -43,6 +43,11 @@ when a non-standard format is being used
autodetected earlier. In this case, use
.BR setfdprm (8)
to load the disk parameters.
+
+For ATAPI IDE floppy driver (also known as LS-120 drives or "Superdisk"
+drives) you have to use the
+.BR floppy (8).
+
.SH OPTIONS
.TP
\fB\-n\fR, \fB\-\-no\-verify\fR
@@ -58,7 +63,8 @@ Display help and exit.
.BR fd (4),
.BR setfdprm (8),
.BR mkfs (8),
-.BR emkfs (8)
+.BR emkfs (8),
+.BR floppy (8)
.SH AUTHOR
Werner Almesberger (almesber@nessie.cs.id.ethz.ch)
.SH AVAILABILITY

View file

@ -1,50 +0,0 @@
diff -up util-linux-2.20-rc2/sys-utils/ipcs.c.kzak util-linux-2.20-rc2/sys-utils/ipcs.c
--- util-linux-2.20-rc2/sys-utils/ipcs.c.kzak 2011-08-12 11:13:00.000000000 +0200
+++ util-linux-2.20-rc2/sys-utils/ipcs.c 2011-08-17 01:16:23.629928605 +0200
@@ -255,6 +255,28 @@ print_perms (int id, struct ipc_perm *ip
}
+static unsigned long long
+shminfo_from_proc(const char *name, unsigned long def)
+{
+ char path[256];
+ char buf[64];
+ FILE *f;
+ unsigned long long res = def;
+
+ if (!name)
+ return res;
+
+ snprintf(path, sizeof(path), "/proc/sys/kernel/%s", name);
+
+ if (!(f = fopen(path, "r")))
+ return res;
+ if (fgets(buf, sizeof(buf), f))
+ res = atoll(buf);
+ fclose(f);
+ return res;
+}
+
+
void do_shm (char format)
{
int maxid, shmid, id;
@@ -277,12 +299,12 @@ void do_shm (char format)
return;
/* glibc 2.1.3 and all earlier libc's have ints as fields
of struct shminfo; glibc 2.1.91 has unsigned long; ach */
- printf (_("max number of segments = %lu\n"),
- (unsigned long) shminfo.shmmni);
- printf (_("max seg size (kbytes) = %lu\n"),
- (unsigned long) (shminfo.shmmax >> 10));
+ printf (_("max number of segments = %llu\n"),
+ shminfo_from_proc("shmmni", shminfo.shmmni));
+ printf (_("max seg size (kbytes) = %llu\n"),
+ (shminfo_from_proc("shmmax", shminfo.shmmax) >> 10));
printf (_("max total shared memory (kbytes) = %llu\n"),
- getpagesize() / 1024 * (unsigned long long) shminfo.shmall);
+ getpagesize() / 1024 * shminfo_from_proc("shmall", shminfo.shmall));
printf (_("min seg size (bytes) = %lu\n"),
(unsigned long) shminfo.shmmin);
return;

View file

@ -1,46 +0,0 @@
From 86248cd28a27bdd9a437e389966b0415e106802e Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Thu, 8 Dec 2011 10:20:22 +0100
Subject: [PATCH] logger: fix remote logging
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Reported-by: Hervé Quillévéré <herve_quillevere@herveq.tk>
Signed-off-by: Karel Zak <kzak@redhat.com>
---
misc-utils/logger.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
index a331f26..c89fca7 100644
--- a/misc-utils/logger.c
+++ b/misc-utils/logger.c
@@ -281,7 +281,7 @@ main(int argc, char **argv) {
}
}
if (p != buf) {
- if (!usock)
+ if (!usock && !udpserver)
syslog(pri, "%s", buf);
else
mysyslog(LogSock, logflags, pri, tag, buf);
@@ -295,13 +295,13 @@ main(int argc, char **argv) {
if (len > 0 && buf[len - 1] == '\n')
buf[len - 1] = '\0';
- if (!usock)
+ if (!usock && !udpserver)
syslog(pri, "%s", buf);
else
mysyslog(LogSock, logflags, pri, tag, buf);
}
}
- if (!usock)
+ if (!usock && !udpserver)
closelog();
else
close(LogSock);
--
1.7.7.5

View file

@ -1,51 +0,0 @@
From 3142564b244b3163446d59f83390f73cea85097b Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Tue, 10 Jan 2012 15:43:56 +0100
Subject: [PATCH] mount: add hint that context= has to be quoted
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=747038
Signed-off-by: Karel Zak <kzak@redhat.com>
---
mount/mount.8 | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/mount/mount.8 b/mount/mount.8
index 2c4f636..00b512e 100644
--- a/mount/mount.8
+++ b/mount/mount.8
@@ -839,7 +839,7 @@ xattrs are supported, you can save time not having to label every file by
assigning the entire disk one security context.
A commonly used option for removable media is
-.BR context=system_u:object_r:removable_t .
+.BR context="system_u:object_r:removable_t" .
Two other options are
.BR fscontext=
@@ -875,8 +875,23 @@ useful for things like stateless linux.
Note that kernel rejects any remount request that includes the context
option even if unchanged from the current context.
+.B Warning that \fIcontext\fP value might contains comma
+and in this case the value has to be properly quoted otherwise
+.BR mount (8)
+will interpret the comma as separator between mount options. Don't forget that
+shell strips off quotes and
+.BR "double quoting is required" ,
+for example:
+.RS
+.RS
+.sp
+mount -t tmpfs none /mnt \-o 'context="system_u:object_r:tmp_t:s0:c127,c456",noexec'
+.sp
+.RE
+
For more details, see
.BR selinux (8)
+.RE
.TP
.B defaults
--
1.7.7.5

View file

@ -1,32 +0,0 @@
diff -up util-linux-2.20.1/libmount/src/context_mount.c.kzak util-linux-2.20.1/libmount/src/context_mount.c
--- util-linux-2.20.1/libmount/src/context_mount.c.kzak 2011-10-18 14:22:27.000000000 +0200
+++ util-linux-2.20.1/libmount/src/context_mount.c 2012-04-17 15:25:14.273287922 +0200
@@ -46,9 +46,10 @@ static int fix_optstr(struct libmnt_cont
fs = cxt->fs;
- /* The propagation flags should not be used together with any other flags */
+ /* The propagation flags should not be used together with any other
+ * flags (except MS_REC and MS_SILENT) */
if (cxt->mountflags & MS_PROPAGATION)
- cxt->mountflags &= MS_PROPAGATION;
+ cxt->mountflags &= (MS_PROPAGATION | MS_REC | MS_SILENT);
if (!mnt_optstr_get_option(fs->user_optstr, "user", &val, &valsz)) {
if (val) {
diff -up util-linux-2.20.1/mount/mount.c.kzak util-linux-2.20.1/mount/mount.c
--- util-linux-2.20.1/mount/mount.c.kzak 2012-04-17 15:24:52.817199995 +0200
+++ util-linux-2.20.1/mount/mount.c 2012-04-17 15:25:14.274287916 +0200
@@ -586,9 +586,10 @@ parse_opts (const char *options, int *fl
*flags |= mounttype;
- /* The propagation flags should not be used together with any other flags */
+ /* The propagation flags should not be used together with any
+ * other flags (except MS_REC and MS_SILENT) */
if (*flags & MS_PROPAGATION)
- *flags &= MS_PROPAGATION;
+ *flags &= (MS_PROPAGATION | MS_REC | MS_SILENT);
}
/* Try to build a canonical options string. */

View file

@ -1,141 +0,0 @@
From a4c0cc75ff9744299f108c259efab1bd30c8007a Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Mon, 2 Jan 2012 11:08:17 +0100
Subject: [PATCH] mount: append inverting options for mount.<type>
fstab:
server://foo /mnt/foo nfs user,exec
The mount(8) does not append the option "exec" to /sbin/mount.<type>
helper's command line. This is no problem when executed by non-root
user as it reads the options from fstab only.
.. but when executed by root (UID=0) then the mount.<type> helper
follows the command where the "exec" option is missing. This is bug.
original version (strace output):
execve("/sbin/mount.nfs", ["/sbin/mount.nfs",
"sr.net.home:/mnt/store", "/mnt/store", "-o",
"rw,nosuid,nodev,noauto,user"], [/* 21 vars */]) = 0
fixed version:
execve("/sbin/mount.nfs", ["/sbin/mount.nfs",
"sr.net.home:/mnt/store", "/mnt/store", "-o",
"rw,nosuid,nodev,noauto,user,exec"], [/* 21 vars */]) = 0
^^^^^
Signed-off-by: Karel Zak <kzak@redhat.com>
---
mount/mount.c | 31 ++++++++++++++++++++++++-------
1 files changed, 24 insertions(+), 7 deletions(-)
diff --git a/mount/mount.c b/mount/mount.c
index 9b444c4..a18b2df 100644
--- a/mount/mount.c
+++ b/mount/mount.c
@@ -207,6 +207,8 @@ static const struct opt_map opt_map[] = {
static int opt_nofail = 0;
+static int invuser_flags;
+
static const char *opt_loopdev, *opt_vfstype, *opt_offset, *opt_sizelimit,
*opt_encryption, *opt_speed, *opt_comment, *opt_uhelper, *opt_helper;
@@ -473,7 +475,7 @@ static int has_context_option(char *opts)
* For the options uid= and gid= replace user or group name by its value.
*/
static inline void
-parse_opt(char *opt, int *mask, char **extra_opts) {
+parse_opt(char *opt, int *mask, int *inv_user, char **extra_opts) {
const struct opt_map *om;
for (om = opt_map; om->opt != NULL; om++)
@@ -482,6 +484,9 @@ parse_opt(char *opt, int *mask, char **extra_opts) {
*mask &= ~om->mask;
else
*mask |= om->mask;
+ if (om->inv && ((*mask & MS_USER) || (*mask & MS_USERS))
+ && (om->mask & MS_SECURE))
+ *inv_user |= om->mask;
if ((om->mask == MS_USER || om->mask == MS_USERS)
&& !om->inv)
*mask |= MS_SECURE;
@@ -566,7 +571,7 @@ parse_opts (const char *options, int *flags, char **extra_opts) {
/* end of option item or last item */
if (*p == '\0' || *(p+1) == '\0') {
if (!parse_string_opt(opt))
- parse_opt(opt, flags, extra_opts);
+ parse_opt(opt, flags, &invuser_flags, extra_opts);
opt = NULL;
}
}
@@ -587,7 +592,9 @@ parse_opts (const char *options, int *flags, char **extra_opts) {
/* Try to build a canonical options string. */
static char *
-fix_opts_string (int flags, const char *extra_opts, const char *user) {
+fix_opts_string (int flags, const char *extra_opts,
+ const char *user, int inv_user)
+{
const struct opt_map *om;
const struct string_opt_map *m;
char *new_opts;
@@ -611,6 +618,16 @@ fix_opts_string (int flags, const char *extra_opts, const char *user) {
if (user)
new_opts = append_opt(new_opts, "user=", user);
+ if (inv_user) {
+ for (om = opt_map; om->opt != NULL; om++) {
+ if (om->mask && om->inv
+ && (inv_user & om->mask) == om->mask) {
+ new_opts = append_opt(new_opts, om->opt, NULL);
+ inv_user &= ~om->mask;
+ }
+ }
+ }
+
return new_opts;
}
@@ -662,7 +679,7 @@ create_mtab (void) {
mnt.mnt_dir = "/";
mnt.mnt_fsname = spec_to_devname(fstab->m.mnt_fsname);
mnt.mnt_type = fstab->m.mnt_type;
- mnt.mnt_opts = fix_opts_string (flags, extra_opts, NULL);
+ mnt.mnt_opts = fix_opts_string (flags, extra_opts, NULL, 0);
mnt.mnt_freq = mnt.mnt_passno = 0;
free(extra_opts);
@@ -787,7 +804,7 @@ check_special_mountprog(const char *spec, const char *node, const char *type, in
if (setuid(getuid()) < 0)
die(EX_FAIL, _("mount: cannot set user id: %s"), strerror(errno));
- oo = fix_opts_string (flags, extra_opts, NULL);
+ oo = fix_opts_string(flags, extra_opts, NULL, invuser_flags);
mountargs[i++] = mountprog; /* 1 */
mountargs[i++] = (char *) spec; /* 2 */
mountargs[i++] = (char *) node; /* 3 */
@@ -1659,7 +1676,7 @@ try_mount_one (const char *spec0, const char *node0, const char *types0,
}
#ifdef HAVE_LIBMOUNT_MOUNT
- mtab_opts = fix_opts_string(flags & ~MS_NOMTAB, extra_opts, user);
+ mtab_opts = fix_opts_string(flags & ~MS_NOMTAB, extra_opts, user, 0);
mtab_flags = flags;
if (fake)
@@ -1703,7 +1720,7 @@ try_mount_one (const char *spec0, const char *node0, const char *types0,
}
if (fake || mnt5_res == 0) {
- char *mo = fix_opts_string (flags & ~MS_NOMTAB, extra_opts, user);
+ char *mo = fix_opts_string (flags & ~MS_NOMTAB, extra_opts, user, 0);
const char *tp = types ? types : "unknown";
/* Mount succeeded, report this (if verbose) and write mtab entry. */
--
1.7.7.5

View file

@ -1,25 +0,0 @@
--- a/sys-utils/switch_root.c
+++ b/sys-utils/switch_root.c
@@ -40,6 +40,10 @@
#define MS_MOVE 8192
#endif
+#ifndef MNT_DETACH
+#define MNT_DETACH 0x00000002 /* Just detach from the tree */
+#endif
+
/* remove all files/directories below dirName -- don't cross mountpoints */
static int recursiveRemove(int fd)
{
@@ -131,7 +135,7 @@ static int switchroot(const char *newroot)
if ((stat(newmount, &sb) != 0) || (sb.st_dev != newroot_stat.st_dev)) {
/* mount point seems to be mounted already or stat failed */
- umount(umounts[i]);
+ umount2(umounts[i], MNT_DETACH);
continue;
}
--
1.7.7.5

View file

@ -1,11 +0,0 @@
# This file and interface are deprecated.
# Applications needing raw device access should open regular
# block devices with O_DIRECT.
#
# Enter raw device bindings here.
#
# An example would be:
# ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"
# to bind /dev/raw/raw1 to /dev/sda, or
# ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m"
# to bind /dev/raw/raw2 to the device with major 8, minor 1.

View file

@ -1,5 +1,4 @@
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth substack system-auth
auth include postlogin
account required pam_nologin.so
@ -8,7 +7,6 @@ password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session required pam_namespace.so

View file

@ -1,10 +0,0 @@
--- util-linux-2.13-pre6/sys-utils/ctrlaltdel.8.kzak 2006-08-10 12:23:53.000000000 +0200
+++ util-linux-2.13-pre6/sys-utils/ctrlaltdel.8 2006-08-10 12:24:08.000000000 +0200
@@ -32,7 +32,6 @@
.SH FILES
.I /etc/rc.local
.SH "SEE ALSO"
-.BR simpleinit (8),
.BR init (8)
.SH AUTHOR
Peter Orbaek (poe@daimi.aau.dk)

View file

@ -1,13 +0,0 @@
Index: util-linux-ng-2.14.2-rc1/login-utils/login.c
===================================================================
--- util-linux-ng-2.14.2-rc1.orig/login-utils/login.c
+++ util-linux-ng-2.14.2-rc1/login-utils/login.c
@@ -1415,7 +1415,7 @@ dolastlog(int quiet) {
struct lastlog ll;
int fd;
- if ((fd = open(_PATH_LASTLOG, O_RDWR, 0)) >= 0) {
+ if ((fd = open(_PATH_LASTLOG, O_RDWR|O_CREAT, 0)) >= 0) {
lseek(fd, (off_t)pwd->pw_uid * sizeof(ll), SEEK_SET);
if (!quiet) {
if (read(fd, (char *)&ll, sizeof(ll)) == sizeof(ll) &&

View file

@ -1,5 +1,4 @@
#%PAM-1.0
auth required pam_securetty.so
auth substack password-auth
auth include postlogin
account required pam_nologin.so

View file

@ -0,0 +1,5 @@
#%PAM-1.0
auth include runuser
session optional pam_keyinit.so force revoke
-session optional pam_systemd.so
session include runuser

5
util-linux-runuser.pamd Normal file
View file

@ -0,0 +1,5 @@
#%PAM-1.0
auth sufficient pam_rootok.so
session optional pam_keyinit.so revoke
session required pam_limits.so
session required pam_unix.so

6
util-linux-su-l.pamd Normal file
View file

@ -0,0 +1,6 @@
#%PAM-1.0
auth include su
account include su
password include su
session optional pam_keyinit.so force revoke
session include su

15
util-linux-su.pamd Normal file
View file

@ -0,0 +1,15 @@
#%PAM-1.0
auth required pam_env.so
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required pam_wheel.so use_uid
auth substack system-auth
auth include postlogin
account sufficient pam_succeed_if.so uid = 0 use_uid quiet
account include system-auth
password include system-auth
session include system-auth
session include postlogin
session optional pam_xauth.so

File diff suppressed because it is too large Load diff

1
uuidd-tmpfiles.conf Normal file
View file

@ -0,0 +1 @@
d /run/uuidd 2775 uuidd uuidd

View file

@ -1,117 +0,0 @@
#!/bin/bash
#
# uuidd uuidd daemon for unique time-based UUID generation
#
# Author: Eric Sandeen <sandeen@redhat.com>
#
# chkconfig: - 60 99
#
# description: uuidd is a helper daemon to guarantee uniqueness of \
# time-based UUIDs when using libuuid.
# processname: uuidd
# pidfile: /var/lib/libuuid/uuidd.pid
#
### BEGIN INIT INFO
# Provides: uuidd
# Required-Start: $time $local_fs
# Required-Stop: $time $local_fs
# Default-Stop: 0 1 6
# Short-Description: UUID daemon
# Description: Daemon which guarantees uniqueness of time-based UUIDS
# when using libuuid.
### END INIT INFO
# source function library
. /etc/rc.d/init.d/functions
[ -e /etc/sysconfig/uuidd ] && . /etc/sysconfig/uuidd
DAEMON=uuidd
exec=/usr/sbin/uuidd
prog=uuidd
user=uuidd
lockfile=/var/lock/subsys/$DAEMON
pidfile=/var/run/uuidd/uuidd.pid
check() {
# Check that we're a privileged user
[ $(id -u) -eq 0 ] || exit 4
# Check if daemon binary is executable
[ -x $exec ] || exit 5
}
start () {
check
echo -n $"Starting $prog: "
daemon --user $user --pidfile $pidfile $DAEMON
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop () {
check
echo -n $"Stopping $prog: "
killproc $DAEMON
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
restart() {
stop
start
}
reload() {
restart
}
force_reload() {
restart
}
rh_status() {
status -p $pidfile $DAEMON
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
case "$1" in
start)
rh_status_q && exit 0
$1
;;
stop)
rh_status_q || exit 0
$1
;;
restart)
$1
;;
reload)
rh_status_q || exit 7
$1
;;
force-reload)
force_reload
;;
status)
rh_status
;;
condrestart|try-restart)
rh_status_q || exit 0
restart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
exit 2
esac
exit $?