mirror of
https://github.com/systemd/systemd
synced 2025-12-28 11:54:45 +01:00
Compare commits
4 Commits
a2e926a135
...
11b9105dfd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11b9105dfd | ||
|
|
cfb6197bc3 | ||
|
|
cd0d230e7b | ||
|
|
ca91ce3a33 |
@ -112,6 +112,7 @@
|
|||||||
These special IDs are primarily useful as a quick way to persistently make the currently booted boot loader
|
These special IDs are primarily useful as a quick way to persistently make the currently booted boot loader
|
||||||
entry the default choice, or to upgrade the default boot loader entry for the next boot to the default boot
|
entry the default choice, or to upgrade the default boot loader entry for the next boot to the default boot
|
||||||
loader entry for all future boots, but may be used for other operations too.
|
loader entry for all future boots, but may be used for other operations too.
|
||||||
|
When an emptry string ("") is specified as an ID, then the corresponding EFI variable will be unset.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ MACHINE_ID=$KERNEL_INSTALL_MACHINE_ID
|
|||||||
|
|
||||||
BOOT_ROOT=${ENTRY_DIR_ABS%/$MACHINE_ID/$KERNEL_VERSION}
|
BOOT_ROOT=${ENTRY_DIR_ABS%/$MACHINE_ID/$KERNEL_VERSION}
|
||||||
BOOT_MNT=$(stat -c %m $BOOT_ROOT)
|
BOOT_MNT=$(stat -c %m $BOOT_ROOT)
|
||||||
ENTRY_DIR=/${ENTRY_DIR_ABS#$BOOT_MNT}
|
ENTRY_DIR=${ENTRY_DIR_ABS#$BOOT_MNT}
|
||||||
|
|
||||||
if [[ $COMMAND == remove ]]; then
|
if [[ $COMMAND == remove ]]; then
|
||||||
rm -f "$BOOT_ROOT/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf"
|
rm -f "$BOOT_ROOT/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf"
|
||||||
|
|||||||
@ -420,7 +420,8 @@ static int enumerator_scan_dir_and_add_devices(sd_device_enumerator *enumerator,
|
|||||||
|
|
||||||
dir = opendir(path);
|
dir = opendir(path);
|
||||||
if (!dir)
|
if (!dir)
|
||||||
return -errno;
|
/* this is necessarily racey, so ignore missing directories */
|
||||||
|
return (errno == ENOENT && (subdir1 || subdir2)) ? 0 : -errno;
|
||||||
|
|
||||||
FOREACH_DIRENT_ALL(dent, dir, return -errno) {
|
FOREACH_DIRENT_ALL(dent, dir, return -errno) {
|
||||||
_cleanup_(sd_device_unrefp) sd_device *device = NULL;
|
_cleanup_(sd_device_unrefp) sd_device *device = NULL;
|
||||||
|
|||||||
@ -322,6 +322,7 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
|
|||||||
"membarrier\0"
|
"membarrier\0"
|
||||||
"mmap\0"
|
"mmap\0"
|
||||||
"mmap2\0"
|
"mmap2\0"
|
||||||
|
"munmap\0"
|
||||||
"nanosleep\0"
|
"nanosleep\0"
|
||||||
"pause\0"
|
"pause\0"
|
||||||
"prlimit64\0"
|
"prlimit64\0"
|
||||||
@ -471,7 +472,6 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
|
|||||||
"mkdirat\0"
|
"mkdirat\0"
|
||||||
"mknod\0"
|
"mknod\0"
|
||||||
"mknodat\0"
|
"mknodat\0"
|
||||||
"munmap\0"
|
|
||||||
"newfstatat\0"
|
"newfstatat\0"
|
||||||
"oldfstat\0"
|
"oldfstat\0"
|
||||||
"oldlstat\0"
|
"oldlstat\0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user