16 Star 11 Fork 110

src-openEuler/systemd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
20-grubby.install
Don-t-set-AlternativeNamesPolicy-by-default.patch
Make-systemd-udevd.service-start-after-systemd-remou.patch
Retry-to-handle-the-uevent-when-worker-is-terminated.patch
Revert-core-one-step-back-again-for-nspawn-we-actual.patch
Systemd-Add-sw64-architecture.patch
activation-service-must-be-restarted-when-reactivated.patch
add-a-new-switch-to-control-whether-udev-complies-wi.patch
add-sw_64-support-for-virt.patch
backport-0001-coredump-also-stop-forwarding-non-dumpable-...
backport-0001-coredump-restore-compatibility-with-older-p...
backport-0002-coredump-get-rid-of-_META_MANDATORY_MAX.patch
backport-0002-coredump-get-rid-of-a-bogus-assertion.patch
backport-Avoid-tmp-being-mounted-as-tmpfs-without-the-use...
backport-CVE-2023-50387.patch
backport-CVE-2023-50868.patch
backport-CVE-2023-7008.patch
backport-CVE-2025-4598-coredump-use-d-in-kernel-core-patt...
backport-Revert-sysctl.d-switch-net.ipv4.conf.all.rp_filt...
backport-allow-override-default-log-level-by-environment-...
backport-bash-completion-add-systemctl-service-log-level-...
backport-basic-add-missing-BCACHEFS-magic.patch
backport-basic-add-missing-PIDFS-magic.patch
backport-basic-log-do-not-treat-all-negative-errnos-as-sy...
backport-core-Bump-log-level-of-reexecute-request-to-noti...
backport-core-Fix-file-descriptor-leak.patch
backport-core-Log-in-more-scenarios-about-which-process-i...
backport-core-escape-spaces-in-paths-during-serialization...
backport-core-escape-spaces-when-serializing-as-well.patch
backport-core-exec-credential-add-missing-assertions.patch
backport-core-exec-credential-use-FOREACH_ARRAY-at-one-mo...
backport-core-exec-do-not-crash-with-UtmpMode-user-withou...
backport-core-fix-assert-when-AddDependencyUnitFiles-is-c...
backport-core-introduce-exec_params_need_credentials.patch
backport-core-reliably-check-if-varlink-socket-has-been-d...
backport-core-reuse-credential-dir-across-start-and-start...
backport-core-service-allow-ExecStartPost-cmds-to-access-...
backport-core-service-don-t-setup-credentials-for-ExecCon...
backport-core-service-fix-accept-socket-deserialization.p...
backport-core-service-introduce-service_exec_flags.patch
backport-core-service-use-log_unit_-where-appropriate.patch
backport-coredump-correctly-take-tmpfs-size-into-account-...
backport-exec-invoke-correct-dont_close-size.patch
backport-execute-free-syscall_log-hashmap-when-done.patch
backport-fix-analyze-q-option-invalid-issue.patch
backport-fix-cgtop-sscanf-return-code-checks.patch
backport-fix-conf-parser-oom-check-issue.patch
backport-fix-homed-log-message-typo-error.patch
backport-fix-log-message-not-match-glob-patterns-passed-t...
backport-fix-memory-leak-in-cryptsetup-generator.patch
backport-fs-util-readlinkat-supports-an-empty-string.patch
backport-install-allow-removing-symlinks-even-for-units-t...
backport-journalctl-erase-verify-key-before-free.patch
backport-login-user-runtime-dir-properly-check-for-mount-...
backport-logind-let-system-wide-idle-begin-at-the-time-lo...
backport-main-pass-the-right-error-variable.patch
backport-mount-optimize-mountinfo-traversal-by-decoupling...
backport-network-networkd-address-don-t-set-up-firewall-r...
backport-pid1-add-env-var-to-override-default-mount-rate-...
backport-repart-fix-memory-leak.patch
backport-resolved-log-error-messages-for-openssl-gnutls-c...
backport-run-do-not-pass-the-pty-slave-fd-to-transient-se...
backport-run-pass-the-pty-slave-fd-to-transient-service.p...
backport-sd-event-change-error-code-EINVAL-EIO.patch
backport-sd-event-do-not-assert-on-invalid-signal.patch
backport-sd-event-fix-fd-leak-when-fd-is-owned-by-IO-even...
backport-sd-ipv4acd-fix-assertion-triggered-when-an-ARP-r...
backport-shared-log-error-when-execve-fail.patch
backport-shutdown-clean-up-sync_with_progress-a-bit.patch
backport-shutdown-close-DM-block-device-before-issuing-DM...
backport-shutdown-replace-unbounded-fsync-with-bounded-sy...
backport-shutdown-teach-sync_with_progress-to-optionally-...
backport-systemctl-fix-printing-of-RootImageOptions.patch
backport-sysusers-handle-NSS-errors-gracefully.patch
backport-temporarily-disable-test-seccomp.patch
backport-unit-check-for-correct-function-in-vtable.patch
backport-user-util-validate-the-right-field.patch
bugfix-also-stop-machine-when-a-machine-un.patch
bugfix-for-cgroup-Swap-cgroup-v1-deletion-and-migration.p...
change-NTP-server-to-x.pool.ntp.org.patch
check-whether-command_prev-is-null-before-assigning-.patch
core-add-OptionalLog-to-allow-users-change-log-level.patch
core-add-invalidate-cgroup-config.patch
core-cgroup-support-cpuset.patch
core-cgroup-support-default-slice-for-all-uni.patch
core-cgroup-support-freezer.patch
core-cgroup-support-memorysw.patch
core-update-arg_default_rlimit-in-bump_rlimit.patch
delay-to-restart-when-a-service-can-not-be-auto-restarted...
delete-Assertion-o-object.type-OBJECT_ENTRY_ARRAY.patch
delete-journal-files-except-system.journal-when-jour.patch
detect_virt
disable-initialize_clock.patch
fix-capsh-drop-but-ping-success.patch
fix-journal-file-descriptors-leak-problems.patch
fix-two-VF-virtual-machines-have-same-mac-address.patch
fuser-print-umount-message-to-reboot-umount-msg.patch
inittab
journal-don-t-enable-systemd-journald-audit.socket.patch
keep-weight-consistent-with-the-set-value.patch
let-the-child-of-one-unit-don-t-affect-each-other.patch
logind-set-RemoveIPC-to-false-by-default.patch
macros.sysusers
net-set-sriov-names
pid1-bump-DefaultTasksMax-to-80-of-the-kernel-pid.ma.patch
print-the-process-status-to-console-when-shutdown.patch
process-util-log-more-information-when-runnin.patch
purge-nobody-user
rc.local
resolved-create-etc-resolv.conf-symlink-at-runtime.patch
revert-rpm-restart-services-in-posttrans.patch
rule_generator.functions
rules-add-elevator-kernel-command-line-parameter.patch
rules-add-rule-for-naming-Dell-iDRAC-USB-Virtual-NIC.patch
rules-add-the-rule-that-adds-elevator-kernel-command.patch
sd-bus-properly-initialize-containers.patch
sense_data.py
set-forwardtowall-no-to-avoid-emerg-log-shown-on-she.patch
set-the-cpuset.cpus-mems-of-machine.slice-to-all-by-.patch
shutdown-reboot-when-recieve-crash-signal.patch
support-disable-cgroup-controllers-we-don-t-want.patch
sysctl.conf.README
systemd-255.tar.gz
systemd-change-time-log-level.patch
systemd-core-Add-new-rules-for-lower-priority-events.patch
systemd-core-fix-problem-of-dbus-service-can-not-be-start...
systemd-fstab-generator-print-logs-only-to-kmsg.patch
systemd-journal-gatewayd.xml
systemd-journal-remote.xml
systemd-logind-add-log-to-display-devices.patch
systemd-solve-that-rsyslog-reads-journal-s-object-of.patch
systemd-udev-trigger-no-reload.conf
systemd-user
systemd.spec
systemd.yaml
sysusers.generate-pre.sh
treat-underscore-as-valid-hostname-char.patch
udev-40-generic.rules
udev-55-persistent-net-generator.rules
udev-56-net-sriov-names.rules
udev-add-actions-while-rename-netif-failed.patch
udev-virsh-shutdown-vm.patch
unit-don-t-add-Requires-for-tmp.mount.patch
units-add-Install-section-to-tmp.mount.patch
update-rtc-with-system-clock-when-shutdown.patch
write_net_rules
yum-protect-systemd.conf
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
20-grubby.install 1.86 KB
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 6年前 . Package init
#!/bin/bash
if [[ ! -x /sbin/new-kernel-pkg ]]; then
exit 0
fi
COMMAND="$1"
KERNEL_VERSION="$2"
BOOT_DIR_ABS="$3"
KERNEL_IMAGE="$4"
KERNEL_DIR="${KERNEL_IMAGE%/*}"
[[ "$KERNEL_VERSION" == *\+* ]] && flavor=-"${KERNEL_VERSION##*+}"
case "$COMMAND" in
add)
if [[ "${KERNEL_DIR}" != "/boot" ]]; then
for i in \
"$KERNEL_IMAGE" \
"$KERNEL_DIR"/System.map \
"$KERNEL_DIR"/config \
"$KERNEL_DIR"/zImage.stub \
"$KERNEL_DIR"/dtb \
; do
[[ -e "$i" ]] || continue
cp -aT "$i" "/boot/${i##*/}-${KERNEL_VERSION}"
command -v restorecon &>/dev/null && \
restorecon -R "/boot/${i##*/}-${KERNEL_VERSION}"
done
# hmac is .vmlinuz-<version>.hmac so needs a special treatment
i="$KERNEL_DIR/.${KERNEL_IMAGE##*/}.hmac"
if [[ -e "$i" ]]; then
cp -a "$i" "/boot/.${KERNEL_IMAGE##*/}-${KERNEL_VERSION}.hmac"
command -v restorecon &>/dev/null && \
restorecon "/boot/.${KERNEL_IMAGE##*/}-${KERNEL_VERSION}.hmac"
fi
fi
/sbin/new-kernel-pkg --package "kernel${flavor}" --install "$KERNEL_VERSION" || exit $?
/sbin/new-kernel-pkg --package "kernel${flavor}" --mkinitrd --dracut --depmod --update "$KERNEL_VERSION" || exit $?
/sbin/new-kernel-pkg --package "kernel${flavor}" --rpmposttrans "$KERNEL_VERSION" || exit $?
;;
remove)
/sbin/new-kernel-pkg --package "kernel${flavor+-$flavor}" --rminitrd --rmmoddep --remove "$KERNEL_VERSION" || exit $?
;;
*)
;;
esac
# skip other installation plugins, if we can't find a boot loader spec conforming setup
if ! [[ -d /boot/loader/entries || -L /boot/loader/entries ]]; then
exit 77
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/systemd.git
git@gitee.com:src-openeuler/systemd.git
src-openeuler
systemd
systemd
master

搜索帮助