Home
last modified time | relevance | path

Searched refs:os (Results 1 – 25 of 64) sorted by relevance

123

/systemd-251/test/
Dcreate-sys-script.py17 import os, sys
56 m = os.lstat(path).st_mode & 0o777
61 src = os.readlink(path)
76 m = os.lstat(path).st_mode & 0o777
88 for (dirpath, dirnames, filenames) in os.walk('sys'):
91 path = os.path.join(dirpath, d)
92 if stat.S_ISLNK(os.lstat(path).st_mode):
95 path = os.path.join(dirpath, f)
96 mode = os.lstat(path).st_mode
104 path_b = os.path.join(tmpd, path_a)
[all …]
Dsysv-generator-test.py10 import os
32 self.init_d_dir = os.path.join(self.workdir, 'init.d')
33 os.mkdir(self.init_d_dir)
35 self.unit_dir = os.path.join(self.workdir, 'systemd')
36 os.mkdir(self.unit_dir)
37 self.out_dir = os.path.join(self.workdir, 'output')
38 os.mkdir(self.out_dir)
54 env = os.environ.copy()
71 if os.path.islink(service):
84 results[os.path.basename(service)] = cp
[all …]
Dtest-systemd-tmpfiles.py9 import os
71 if os.getuid() == 0:
100 test_content('f {} - - - - %v', '{}'.format(os.uname().release), user=user)
101 test_content('f {} - - - - %U', '{}'.format(os.getuid() if user else 0), user=user)
102 test_content('f {} - - - - %G', '{}'.format(os.getgid() if user else 0), user=user)
104 puser = pwd.getpwuid(os.getuid() if user else 0)
107 pgroup = grp.getgrgid(os.getgid() if user else 0)
112 home = os.path.expanduser("~")
115 xdg_runtime_dir = os.getenv('XDG_RUNTIME_DIR')
121 xdg_config_home = os.getenv('XDG_CONFIG_HOME')
[all …]
Dnetworkd-test.py22 import os
74 if os.path.isdir(d):
77 if os.path.isdir('/run/systemd/resolve'):
78 os.chmod('/run/systemd/resolve', 0o755)
80 if os.path.isdir('/run/systemd/netif'):
81 os.chmod('/run/systemd/netif', 0o755)
85 os.environ['SYSTEMD_LOG_TARGET'] = 'journal'
88 os.makedirs(NETWORK_UNITDIR, exist_ok=True)
122 self.addCleanup(os.remove, path)
126 self.write_config(os.path.join(NETWORK_UNITDIR, unit_name), contents)
[all …]
Dsd-script.py19 import os
24 os.mkdir(path, mode)
27 os.symlink(src, path)
32 os.chmod(path, mode)
281 if not os.path.isdir(sys.argv[1]):
335 os.chdir(sys.argv[1])
Drun-unit-tests.py6 import os
40 if not opts.artifact_directory and os.getenv('ARTIFACT_DIRECTORY'):
41 opts.artifact_directory = os.getenv('ARTIFACT_DIRECTORY')
45 name = os.path.basename(test)
Dtest-exec-deserialization.py11 import os
130 self.assertTrue(not os.path.exists(self.output_file))
168 self.assertTrue(not os.path.exists(self.output_file))
204 os.remove(f)
/systemd-251/
D.ycm_extra_conf.py45 import os
58 return os.path.dirname(os.path.abspath(__file__))
72 result = os.path.join(DirectoryOfThisScript(), "build")
74 if os.path.exists(result):
77 result = glob.glob(os.path.join(DirectoryOfThisScript(),
86 return os.path.split(result[0])[0]
103 for root_dir, subdirs, file_list in os.walk(root):
108 get_ext = os.path.splitext
122 _project_src_dir = os.path.join(DirectoryOfThisScript(), "src")
152 if os.path.exists(compilation_database_folder):
[all …]
Dmkosi.build98 OSRELEASEFILE="$DESTDIR"/usr/lib/os-release
100 OSRELEASEFILE=/usr/lib/os-release
110 cat /tmp/os-release.tmp > "$DESTDIR"/usr/lib/os-release
111 rm /tmp/os-release.tmp
/systemd-251/test/units/
Dtestsuite-13.sh76 elif [[ -L "${_os_release_source}" ]] && rm /etc/os-release; then
78 cp /usr/lib/os-release /etc
79 echo MARKER=1 >>/etc/os-release
82 …ister=no -D /testsuite-13.nc-container --bind="${_os_release_source}":/tmp/os-release /bin/sh -x -…
84 if grep -q MARKER /etc/os-release; then
85 rm /etc/os-release
86 ln -s ../usr/lib/os-release /etc/os-release
Dtestsuite-29.sh119 mkdir /tmp/rootdir /tmp/app0 /tmp/app1 /tmp/overlay /tmp/os-release-fix /tmp/os-release-fix/etc
127 grep -v "^PORTABLE_PREFIXES=" /tmp/rootdir/etc/os-release > /tmp/os-release-fix/etc/os-release
129 mount -t overlay overlay -o lowerdir=/tmp/os-release-fix:/tmp/app1:/tmp/rootdir /tmp/overlay
132 grep . /tmp/overlay/etc/os-release
147 …at --extension app0 --extension app1 rootdir app0 app1 | grep -q -f /tmp/rootdir/usr/lib/os-release
162 touch /tmp/emptyroot/usr/lib/os-release
Dtestsuite-43.sh74 -p PrivateUsers=yes -p BindPaths=/dev/null:/etc/os-release \
75 test ! -s /etc/os-release
81 test ! -w /etc/os-release
86 test -s /etc/os-release
127 grep MARKER=1 /etc/os-release
133 grep MARKER=1 /etc/os-release
Dtestsuite-50.sh64 systemd-run -P -p RootImage="${image}.raw" cat /usr/lib/os-release | grep -q -F "MARKER=1"
67 …ootHash="${image}.foohash" -p RootVerity="${image}.fooverity" cat /usr/lib/os-release | grep -q -F…
69 …Hash="${roothash}" --property RootVerity="${image}.fooverity" cat /usr/lib/os-release | grep -q -F…
213 …e="${image}.gpt" -p RootHash="${roothash}" -p MountAPIVFS=yes cat /usr/lib/os-release | grep -q -F…
252 …ages="${image}.gpt:/run/img1 ${image}.raw:/run/img2" cat /run/img1/usr/lib/os-release | grep -q -F…
253 …ages="${image}.gpt:/run/img1 ${image}.raw:/run/img2" cat /run/img2/usr/lib/os-release | grep -q -F…
256 systemd-run -P -p MountImages="${image}.raw:/run/img2\:3" cat /run/img2:3/usr/lib/os-release | grep…
258 …p MountImages="${image}.gpt:/run/img1 ${image}.raw:/run/img2" cat /usr/lib/os-release | grep -q -F…
259 …ages="${image}.gpt:/run/img1 ${image}.raw:/run/img2" cat /run/img1/usr/lib/os-release | grep -q -F…
260 …ages="${image}.gpt:/run/img1 ${image}.raw:/run/img2" cat /run/img2/usr/lib/os-release | grep -q -F…
/systemd-251/test/test-network/
Dsystemd-networkd-tests.py14 import os
42 which_paths=':'.join(systemd_lib_paths + os.getenv('PATH', os.defpath).lstrip(':').split(':'))
288 os.makedirs(network_unit_file_path, exist_ok=True)
289 os.makedirs(networkd_conf_dropin_path, exist_ok=True)
290 os.makedirs(networkd_ci_path, exist_ok=True)
291 os.makedirs(udev_rules_dir, exist_ok=True)
294 copytree(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'conf'), networkd_ci_path)
296 shutil.copy(os.path.join(networkd_ci_path, '00-debug-net.rules'), udev_rules_dir)
337 os.makedirs('/run/systemd/system/systemd-networkd.service.d', exist_ok=True)
368 os.makedirs('/run/systemd/system/systemd-resolved.service.d', exist_ok=True)
[all …]
/systemd-251/catalog/
Dsystemd.pt_BR.catalog.in26 O processo do jornal do sistema foi desligado e todos os arquivos de jornal
39 mensagens dos serviços não foram afetadas.
118 Todos os serviços do sistema necessários que estão enfileirados para
120 que isso não significa que a máquina está ociosa, pois os serviços podem
149 os serviços do sistema foram terminados e todos os sistemas desmontados.
232 vazio. Isso não interfere com a montagem, mas os arquivos pré-existentes
233 neste diretório se tornaram inacessívels. Para ver aqueles arquivos, sobre os
/systemd-251/src/kernel-install/
D90-loaderentry.install55 if [ -r /etc/os-release ]; then
57 . /etc/os-release
58 elif [ -r /usr/lib/os-release ]; then
60 . /usr/lib/os-release
/systemd-251/src/shared/
Dgenerate-syscall-list.py5 import os
7 s390 = 's390' in os.uname().machine
8 arm = 'arm' in os.uname().machine
/systemd-251/tools/
Dmeson-render-jinja2.py5 import os
36 info = os.stat(sys.argv[3])
37 os.chmod(sys.argv[4], info.st_mode)
/systemd-251/docs/
DCOREDUMP_PACKAGE_METADATA.md41 listed here. When corresponding to the content of os-release, the values should match, again for co…
60 "os":"fedora",
65 …edora:33", # A CPE name for the operating system, `CPE_NAME` from os-release is a good de…
143 | os | The OS name, typically corresponding to ID in os-release | fedora …
144 | osVersion | The OS version, typically corresponding to VERSION_ID in os-release | 33 …
148 | osCpe | A CPE name for the OS, typically corresponding to CPE_NAME in os-release | cpe:/o:…
DBUILDING_IMAGES.md87 [`/etc/os-release`](https://www.freedesktop.org/software/systemd/man/os-release.html)
129 more. Among others this will also link `/etc/os-release` →
130 `/usr/lib/os-release`, ensuring that the OS release information is
131 unconditionally accessible through `/etc/os-release`.
255 [`os-release(5)`](https://www.freedesktop.org/software/systemd/man/os-release.html). These
260 OS distribution's `os-release` file as is in `/usr/lib/os-release` but to
261 replace the usual `/etc/os-release` symlink with a regular file that extends
269 [`os-release(5)`](https://www.freedesktop.org/software/systemd/man/os-release.html)<br>
/systemd-251/test/test-execute/
Dexec-systemcallerrornumber-number.service6 ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
Dexec-systemcallerrornumber-name.service6 ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
Dexec-systemcallfilter-with-errno-number.service6 ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
Dexec-systemcallfilter-with-errno-name.service6 ExecStart=/usr/bin/python3 -c 'import os\ntry: os.uname()\nexcept Exception as e: exit(e.errno)'
/systemd-251/src/fuzz/
Dfuzz-bootspec-gen.py6 import os
12 entries = [(os.path.basename(name), open(name).read())

123