Josh Poimboeuf
991b25b067
kmod/core: require fentry
...
Only compile the core module if the compiler supports -mfentry.
2014-04-15 14:40:03 -05:00
Seth Jennings
27980527cd
Merge pull request #127 from jpoimboe/pr_err
...
kmod/core: use pr_err instead of printk
2014-04-15 14:28:42 -05:00
Josh Poimboeuf
e6cad4f0b1
kmod/core: use pr_err instead of printk
2014-04-15 14:21:19 -05:00
Seth Jennings
2fd20a7a30
Merge pull request #124 from jpoimboe/taint
...
kmod/core: taint kernel with TAINT_USER
2014-04-15 13:52:47 -05:00
Seth Jennings
2802086a37
Merge pull request #126 from jpoimboe/rm-kpatch-service
...
remove systemd service unit file
2014-04-15 13:52:42 -05:00
Seth Jennings
fc42abebd1
Merge pull request #125 from jpoimboe/patch-module-terminology
...
update patch module terminology
2014-04-15 13:52:19 -05:00
Josh Poimboeuf
ac53b4e7a0
remove systemd service unit file
...
Now that we're using dracut instead of systemd to load modules at boot
time, the systemd unit file is no longer needed.
2014-04-15 13:50:18 -05:00
Josh Poimboeuf
a7efb05c81
update patch module terminology
...
Try to be more consistent with the terminology. In various places we
call it a "hotpatch module", "hot patch module", or "patch module". How
about we just call it a "patch module" everywhere?
2014-04-15 13:47:56 -05:00
Seth Jennings
afd3669746
Merge pull request #123 from lulinqing/patch-1
...
Fix issue #122 (subcommand unload not recognized)
2014-04-15 13:34:24 -05:00
Josh Poimboeuf
56645d346d
kmod/core: taint kernel with TAINT_USER
...
For now, taint with TAINT_USER when loading a patch module so that the
user can always detect when a kpatch module has been previously loaded.
Eventually we will want a dedicated TAINT_KPATCH flag in the kernel.
2014-04-15 13:34:01 -05:00
Seth Jennings
18a583b6bf
Merge pull request #120 from jpoimboe/revert-115
...
Revert "kpatch-build: prevent die if only part of objects have no change...
2014-04-15 11:41:51 -05:00
Linqing Lu
9470c385d8
Fix issue #122 (subcommand unload not recognized)
2014-04-15 12:12:15 +08:00
Seth Jennings
6006cb074b
Merge pull request #121 from jpoimboe/dracutdir
...
fix DRACUTDIR to be in /usr/lib/dracut
2014-04-14 12:51:27 -05:00
Seth Jennings
8195a2f79a
Merge pull request #119 from jpoimboe/load-into
...
kpatch: change wording of "load to" to "load into"
2014-04-14 12:41:04 -05:00
Seth Jennings
ba5899b312
Merge pull request #118 from jpoimboe/kpatch-load-2
...
contrib: change kpatch-apply-all to kpatch-load-all
2014-04-14 12:40:45 -05:00
Josh Poimboeuf
ea945f6121
fix DRACUTDIR to be in /usr/lib/dracut
...
Unforunately the dracut module doesn't work if installed in
/usr/local/lib/dracut. It must always be installed in
/usr/lib/dracut regardless of the install prefix.
2014-04-14 12:39:19 -05:00
Josh Poimboeuf
e00d1394c4
Revert "kpatch-build: prevent die if only part of objects have no change"
...
This reverts commit ab29b1ff59
.
Reverting this commit because it causes kpatch-build to ignore any
errors reported by create-diff-object, treating all errors as meaning
that no changes occurred, which is a dangerous assumption to make.
2014-04-14 12:34:44 -05:00
Josh Poimboeuf
68e4cff461
kpatch: change wording of "load to" to "load into"
2014-04-14 12:30:11 -05:00
Josh Poimboeuf
3083d4ef85
contrib: change kpatch-apply-all to kpatch-load-all
2014-04-14 12:27:55 -05:00
Seth Jennings
e1099dbbc1
Merge pull request #115 from madper/master
...
kpatch-build: prevent die if only part of objects have no change
2014-04-10 22:40:18 -05:00
Madper Xie
ab29b1ff59
kpatch-build: prevent die if only part of objects have no change
...
Consider following patch: https://lkml.org/lkml/diff/2014/1/7/637/1
Kpatch-build will generate two objects for it. however mlock.o has no
changed function and will cause kpatch-build die.
Signed-off-by: Madper Xie <cxie@redhat.com>
2014-04-11 11:24:05 +08:00
Seth Jennings
35736db592
Merge pull request #117 from useidel/master
...
changelog of SPEC updated ... forgotten before :-(
2014-04-10 16:56:32 -05:00
Udo Seidel
f0b5756267
changelog of SPEC updated ... forgotten before :-(
2014-04-10 23:53:45 +02:00
Seth Jennings
dd204989e6
Merge pull request #114 from spartacus06/reject-init-changes
...
fail if init section has changed
2014-04-10 16:12:12 -05:00
Seth Jennings
fcbf46978f
Merge pull request #111 from spartacus06/change-subcommands
...
change 'apply/remove' to 'load/unload'
2014-04-10 16:11:54 -05:00
Seth Jennings
205a508489
Merge pull request #116 from useidel/master
...
adapted Makefile.inc contrib/Makefile and SPEC file for dracut modules
2014-04-10 16:06:47 -05:00
Udo Seidel
177b42d951
adapted Makefile.inc contrib/Makefile and SPEC file for dracut modules
2014-04-10 22:23:00 +02:00
Seth Jennings
7b15e23149
fail on changed init section
...
fixes issue #103
Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-04-08 12:45:55 -05:00
Seth Jennings
6626db1ad8
add debug message when section has changed
...
Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-04-08 12:40:23 -05:00
Seth Jennings
53f051ea18
Merge pull request #110 from spartacus06/fixups
...
Fixups
2014-04-07 12:15:36 -05:00
Seth Jennings
c4d652c5da
remove vim metadata from files
...
Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-04-07 12:13:53 -05:00
Seth Jennings
6655d00c60
change 'apply/remove' to 'load/unload'
...
After removing the distinction between 'enabled' modules and 'applied'
modules in 022e42bc
, we can change the 'apply' and 'remove' subcommands,
to more intuitive 'load' and 'unload' subcommands.
Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-04-07 12:12:40 -05:00
Seth Jennings
8ba2d549cc
add -R to remove directory
...
Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-04-07 12:06:58 -05:00
Seth Jennings
065fde63d9
add sourcerpm option to kpatch-build man page
...
Signed-off-by: Seth Jennings <sjenning@redhat.com>
2014-04-07 12:02:33 -05:00
Seth Jennings
f3a4275ed8
Merge pull request #106 from jpoimboe/kpatch-install-initrd
...
kpatch: install patch modules to initrd
2014-04-07 11:02:30 -05:00
Seth Jennings
21586035d7
Merge pull request #105 from jpoimboe/kpatch-build-srpm
...
kpatch-build: add option to build from source RPM
2014-04-07 10:36:10 -05:00
Josh Poimboeuf
b487be539c
kpatch: print status messages
...
Print status messages for load/unload/install/uninstall to give the user
a better idea of what's going on.
2014-04-01 15:57:57 -05:00
Josh Poimboeuf
ff2b545f04
kpatch: load core module in kpatch apply
2014-04-01 15:47:22 -05:00
Josh Poimboeuf
eb1bd13278
kpatch: install to initrd and load patch modules on boot
...
When doing "kpatch install", copy the patch modules to the initrd and
install a dracut hook which calls "kpatch apply --all".
2014-04-01 15:47:22 -05:00
Josh Poimboeuf
9bbea5c604
kpatch-build: small refactor
...
Split up the USERSRCDIR and SRCDIR code paths for better readability.
2014-04-01 11:07:08 -05:00
Josh Poimboeuf
0cb8025eff
kpatch-build: add option to build from source RPM
2014-04-01 11:03:36 -05:00
Seth Jennings
68c925d9b2
Merge pull request #100 from jpoimboe/kpatch-build-noargs
...
kpatch-build: getopts arg parsing cleanup
2014-04-01 10:40:22 -05:00
Seth Jennings
e87b37aafe
Merge pull request #102 from jpoimboe/patch-no-reverse
...
kpatch-build: improve error handling for an already applied patch
2014-04-01 10:30:11 -05:00
Seth Jennings
847842b1c3
Merge pull request #101 from jpoimboe/kpatch-man
...
man: remove enable/disable from kpatch man page
2014-04-01 10:28:41 -05:00
Josh Poimboeuf
5a999ef68c
kpatch-build: create applied-patch only after verifying patch
...
Create the applied-patch file only after the patch has been verified.
Otherwise if you accidentally supply a patch which had already been
applied to the source, the cleanup trap won't reverse apply it when
exiting the script.
2014-04-01 07:51:21 -05:00
Josh Poimboeuf
7fe5c3fef4
kpatch-build: don't ask to reverse apply patch
...
If the patch had already been mistakenly applied to the source tree,
don't ask the user if it should be reverse applied. Instead, just exit
with an error.
2014-04-01 07:49:51 -05:00
Josh Poimboeuf
1e21aefbd4
man: remove enable/disable from kpatch man page
...
They were already removed from the kpatch script with commit 022e42b
.
2014-04-01 07:38:37 -05:00
Josh Poimboeuf
2728a7faae
kpatch: remove obsolete comment
2014-04-01 07:38:00 -05:00
Josh Poimboeuf
0f464b8500
kpatch-build: add "no patch file specified" error
2014-04-01 07:16:12 -05:00
Josh Poimboeuf
ece4124a45
kpatch-build: getopts arg parsing cleanup
...
Cleanup the kpatch-build argument parsing a little bit:
- gracefully handle no args
- allow white space in filenames
- use 'eval set -- $options' to allow use of $1 and $2 variables
2014-03-31 16:02:50 -05:00