Compare commits
104 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c81f8b3540 | ||
|
|
59989cdcf1 | ||
|
|
90e6e9e2ea | ||
|
|
100c0bd722 | ||
|
|
c8559fc150 | ||
|
|
9b36e39b27 | ||
|
|
0ad1aab965 | ||
|
|
8c47980cce | ||
|
|
c8914f994c | ||
|
|
ad8da7feda | ||
|
|
414789841d | ||
|
|
8adbdb9e07 | ||
|
|
7752abee23 | ||
|
|
c006ff8d74 | ||
|
|
d99531c1b0 | ||
|
|
6eb35fcbcc | ||
|
|
0627061939 | ||
|
|
2ed7bf1db0 | ||
|
|
00bcdd18cf | ||
|
|
32dd2e2fe5 | ||
|
|
3620bdfb5b | ||
|
|
83747c72df | ||
|
|
d22d9d9fa5 | ||
|
|
8fcd375eb6 | ||
|
|
1977718793 | ||
|
|
bc7e32837e | ||
|
|
fa67978555 | ||
|
|
4118d1a47d | ||
|
|
98deefd061 | ||
|
|
063292249b | ||
|
|
e8db6a338d | ||
|
|
78c1837894 | ||
|
|
72516ea425 | ||
|
|
a7d6b1722d | ||
|
|
bf408b891a | ||
|
|
8b9b6fa983 | ||
|
|
f682f2cda4 | ||
|
|
dd1b01a7f2 | ||
|
|
f8e9330962 | ||
|
|
16097e4697 | ||
|
|
a6acd3cd5d | ||
|
|
20a3a8134f | ||
|
|
8bc17aea41 | ||
|
|
c017856836 | ||
|
|
a26dfde505 | ||
|
|
58901cdc40 | ||
|
|
99cbd9c275 | ||
|
|
b218c70171 | ||
|
|
8f1d188016 | ||
|
|
7276c52c2c | ||
|
|
b401eaeb06 | ||
|
|
c1a3a2c4c9 | ||
|
|
a9bd99de9a | ||
|
|
10556b4674 | ||
|
|
5caa862561 | ||
|
|
828930f758 | ||
|
|
5d86e6ecbf | ||
|
|
cc0891ad5a | ||
|
|
e68a9f6e5b | ||
|
|
b49d82372a | ||
|
|
ece91b6027 | ||
|
|
ec7561937e | ||
|
|
66424e8dfc |
||
|
|
19f61713dc | ||
|
|
5c3ed97c09 | ||
|
|
d98dff205a | ||
|
|
b141ea22e9 | ||
|
|
b847d3463c | ||
|
|
6c34f25ae1 | ||
|
|
73d57eaa5b | ||
|
|
dcade7bff5 | ||
|
|
c155b1dbda | ||
|
|
14f11104dd | ||
|
|
d3caf21a29 | ||
|
|
8e43169ab0 | ||
|
|
ee6edab6e6 | ||
|
|
eaffb9550b | ||
|
|
b6ab9a6dbf | ||
|
|
c8768ae27b | ||
|
|
243b64adc1 | ||
|
|
a11c2d64d6 | ||
|
|
049c81f2d3 | ||
|
|
f259f7b866 | ||
|
|
37ba55c6e6 | ||
|
|
959a96814c | ||
|
|
a14ce69b23 | ||
|
|
bd7342c31a | ||
|
|
3713379034 | ||
|
|
443c9aaa40 | ||
|
|
15694203da | ||
|
|
b68d903213 | ||
|
|
c777c519e0 | ||
|
|
4567b472f6 | ||
|
|
53878cc54c | ||
|
|
6ebdb7b94e | ||
|
|
245053800f | ||
|
|
53f566228b | ||
|
|
a8ac62456e | ||
|
|
fab7fb2c58 | ||
|
|
ed75de05f9 | ||
|
|
6ee1b79261 | ||
|
|
8c1e6907e1 | ||
|
|
80893f4dcc | ||
|
|
f1984484cc |
11 changed files with 1506 additions and 693 deletions
54
.gitignore
vendored
54
.gitignore
vendored
|
|
@ -9,3 +9,57 @@
|
|||
/initscripts-9.52.tar.bz2
|
||||
/initscripts-9.53.tar.bz2
|
||||
/initscripts-9.54.tar.bz2
|
||||
/initscripts-9.55.tar.bz2
|
||||
/initscripts-9.56.1.tar.bz2
|
||||
/initscripts-9.58.tar.bz2
|
||||
/initscripts-9.59.tar.bz2
|
||||
/initscripts-9.60.tar.bz2
|
||||
/initscripts-9.61.tar.bz2
|
||||
/initscripts-9.62.tar.bz2
|
||||
/initscripts-9.63.tar.bz2
|
||||
/initscripts-9.64.tar.bz2
|
||||
/initscripts-9.65.tar.bz2
|
||||
/initscripts-9.66.tar.bz2
|
||||
/initscripts-9.67.tar.bz2
|
||||
/initscripts-9.68.tar.bz2
|
||||
/initscripts-9.69.tar.bz2
|
||||
/initscripts-9.70.tar.gz
|
||||
/initscripts-9.71.tar.gz
|
||||
/initscripts-9.72.tar.gz
|
||||
/initscripts-9.74.tar.gz
|
||||
/initscripts-9.75.tar.gz
|
||||
/initscripts-9.76.tar.gz
|
||||
/initscripts-9.77.tar.gz
|
||||
/initscripts-9.78.tar.gz
|
||||
/initscripts-9.79.tar.gz
|
||||
/initscripts-9.80.tar.gz
|
||||
/initscripts-9.81.tar.gz
|
||||
/initscripts-9.82.tar.gz
|
||||
/initscripts-9.83.tar.gz
|
||||
/initscripts-10.00.tar.gz
|
||||
/initscripts-10.01.tar.gz
|
||||
/initscripts-10.02.tar.gz
|
||||
/initscripts-10.03.tar.gz
|
||||
/initscripts-10.04.tar.gz
|
||||
/initscripts-10.05.tar.gz
|
||||
/initscripts-10.06.tar.gz
|
||||
/initscripts-10.07.tar.gz
|
||||
/initscripts-10.08.tar.gz
|
||||
/initscripts-10.09.tar.gz
|
||||
/initscripts-10.10.tar.gz
|
||||
/initscripts-10.11.tar.gz
|
||||
/initscripts-10.12.tar.gz
|
||||
/initscripts-10.13.tar.gz
|
||||
/initscripts-10.14.tar.gz
|
||||
/initscripts-10.15.tar.gz
|
||||
/initscripts-10.16.tar.gz
|
||||
/initscripts-10.17.tar.gz
|
||||
/initscripts-10.18.tar.gz
|
||||
/initscripts-10.19.tar.gz
|
||||
/initscripts-10.20.tar.gz
|
||||
/initscripts-10.21.tar.gz
|
||||
/initscripts-10.23.tar.gz
|
||||
/initscripts-10.24.tar.gz
|
||||
/initscripts-10.25.tar.gz
|
||||
/initscripts-10.26.tar.gz
|
||||
/initscripts-10.27.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,500 +0,0 @@
|
|||
From e1f4ca4ebaab97166a315e0e54231ea8dbf7588c Mon Sep 17 00:00:00 2001
|
||||
From: Lukas Nykryn <lnykryn@redhat.com>
|
||||
Date: Thu, 24 Apr 2014 13:59:06 +0200
|
||||
Subject: [PATCH] remove ppp from translation
|
||||
|
||||
---
|
||||
po/Makefile | 2 +-
|
||||
po/initscripts.pot | 166 ++++++++++++++++++++---------------------------------
|
||||
2 files changed, 62 insertions(+), 106 deletions(-)
|
||||
|
||||
diff --git a/po/Makefile b/po/Makefile
|
||||
index fb81b9a..a5658ec 100644
|
||||
--- a/po/Makefile
|
||||
+++ b/po/Makefile
|
||||
@@ -10,7 +10,7 @@ NLSPACKAGE = initscripts
|
||||
CATALOGS = $(shell ls *.po)
|
||||
FMTCATALOGS = $(patsubst %.po,%.mo,$(CATALOGS))
|
||||
|
||||
-POTFILES = ../ppp/ip* $(shell ls ../sysconfig/network-scripts/* | grep -v ifcfg-) \
|
||||
+POTFILES = $(shell ls ../sysconfig/network-scripts/* | grep -v ifcfg-) \
|
||||
../service ../sys-unconfig ../systemd/fedora-* ../rc.d/init.d/*
|
||||
|
||||
all: $(NLSPACKAGE).pot $(FMTCATALOGS)
|
||||
diff --git a/po/initscripts.pot b/po/initscripts.pot
|
||||
index cd791f1..99d9cf8 100644
|
||||
--- a/po/initscripts.pot
|
||||
+++ b/po/initscripts.pot
|
||||
@@ -8,7 +8,7 @@ msgstr ""
|
||||
"Content-Type: text/plain; charset=ISO-8859-1\n"
|
||||
"Content-Transfer-Encoding: 8-bit\n"
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:231
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:245
|
||||
msgid "Error, some other host already uses address ${ipaddr[$idx]}."
|
||||
msgstr ""
|
||||
|
||||
@@ -24,10 +24,6 @@ msgstr ""
|
||||
msgid "Missing remote IPv4 address of tunnel, configuration is not valid"
|
||||
msgstr ""
|
||||
|
||||
-#: ../service:78
|
||||
-msgid "Redirecting to /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE}.service"
|
||||
-msgstr ""
|
||||
-
|
||||
#: ../rc.d/init.d/functions:410
|
||||
msgid "${base} status unknown due to insufficient privileges."
|
||||
msgstr ""
|
||||
@@ -40,7 +36,7 @@ msgstr ""
|
||||
msgid "Usage: killproc [-p pidfile] [ -d delay] {program} [-signal]"
|
||||
msgstr ""
|
||||
|
||||
-#: ../ppp/ip-up.ipv6to4:123 ../sysconfig/network-scripts/ifup-ipv6:226
|
||||
+#: ../sysconfig/network-scripts/ifup-ipv6:226
|
||||
msgid "Warning: configured MTU '$IPV6TO4_MTU' for 6to4 exceeds maximum limit of '$tunnelmtu', ignored"
|
||||
msgstr ""
|
||||
|
||||
@@ -48,7 +44,7 @@ msgstr ""
|
||||
msgid "Unsupported reason '$reason' for sending trigger to radvd"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup:103 ../sysconfig/network-scripts/ifup-eth:78
|
||||
+#: ../sysconfig/network-scripts/ifup:104 ../sysconfig/network-scripts/ifup-eth:85
|
||||
msgid "$alias device ${DEVICE} does not seem to be present, delaying initialization."
|
||||
msgstr ""
|
||||
|
||||
@@ -64,12 +60,8 @@ msgstr ""
|
||||
msgid "*** when you leave the shell."
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-ppp:75
|
||||
-msgid "ifup-ppp for ${DEVNAME} exiting"
|
||||
-msgstr ""
|
||||
-
|
||||
-#: ../sysconfig/network-scripts/ifup-ppp:142
|
||||
-msgid "pppd started for ${DEVNAME} on ${MODEMPORT} at ${LINESPEED}"
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:179
|
||||
+msgid "Determining IP information for ${DEVICE}..."
|
||||
msgstr ""
|
||||
|
||||
#: ../rc.d/init.d/functions:463
|
||||
@@ -88,12 +80,8 @@ msgstr ""
|
||||
msgid "$base startup"
|
||||
msgstr ""
|
||||
|
||||
-#: ../ppp/ip-down.ipv6to4:35 ../ppp/ip-up.ipv6to4:41
|
||||
-msgid "Argument 1 is empty but should contain interface name - skip IPv6to4 initialization"
|
||||
-msgstr ""
|
||||
-
|
||||
-#: ../ppp/ip-up.ipv6to4:189 ../sysconfig/network-scripts/ifup-ipv6:292
|
||||
-msgid "radvd control enabled, but config is not complete"
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:43
|
||||
+msgid "Device ${DEVICE} has different MAC address than expected, ignoring."
|
||||
msgstr ""
|
||||
|
||||
#: ../sysconfig/network-scripts/network-functions-ipv6:383
|
||||
@@ -104,11 +92,11 @@ msgstr ""
|
||||
msgid "Server address not specified in /etc/sysconfig/netconsole"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/network-functions-ipv6:798
|
||||
-msgid "Missing parameter 'IPv6 MTU' (arg 2)"
|
||||
+#: ../rc.d/init.d/functions:419
|
||||
+msgid "${base} dead but subsys locked"
|
||||
msgstr ""
|
||||
|
||||
-#: ../rc.d/init.d/network:67
|
||||
+#: ../rc.d/init.d/network:65
|
||||
msgid "Bringing up loopback interface: "
|
||||
msgstr ""
|
||||
|
||||
@@ -124,27 +112,35 @@ msgstr ""
|
||||
msgid "Missing parameter 'selection' (arg 2)"
|
||||
msgstr ""
|
||||
|
||||
-#: ../ppp/ip-up.ipv6to4:91 ../sysconfig/network-scripts/ifup-ipv6:211
|
||||
+#: ../sysconfig/network-scripts/ifup-ipv6:211
|
||||
msgid "IPv6to4 configuration needs an IPv4 address on related interface or otherwise specified"
|
||||
msgstr ""
|
||||
|
||||
+#: ../sysconfig/network-scripts/ifup-aliases:165
|
||||
+msgid "error in $FILE: invalid alias number"
|
||||
+msgstr ""
|
||||
+
|
||||
#: ../sysconfig/network-scripts/ifup-aliases:190
|
||||
msgid "error iN $FILE: didn't specify netmask or prefix"
|
||||
msgstr ""
|
||||
|
||||
+#: ../sysconfig/network-scripts/ifup-aliases:264
|
||||
+msgid "Error, some other host already uses address ${IPADDR}."
|
||||
+msgstr ""
|
||||
+
|
||||
#: ../sysconfig/network-scripts/ifdown-tunnel:36 ../sysconfig/network-scripts/ifup-tunnel:63
|
||||
msgid "Device '$DEVICE' isn't supported as a valid GRE device name."
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:43
|
||||
-msgid "Device ${DEVICE} has different MAC address than expected, ignoring."
|
||||
+#: ../sysconfig/network-scripts/ifup-ipv6:292
|
||||
+msgid "radvd control enabled, but config is not complete"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-aliases:264
|
||||
-msgid "Error, some other host already uses address ${IPADDR}."
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:279
|
||||
+msgid "Error adding default gateway for ${REALDEVICE}."
|
||||
msgstr ""
|
||||
|
||||
-#: ../rc.d/init.d/network:271
|
||||
+#: ../rc.d/init.d/network:244
|
||||
msgid "Usage: $0 {start|stop|status|restart|reload|force-reload}"
|
||||
msgstr ""
|
||||
|
||||
@@ -156,7 +152,7 @@ msgstr ""
|
||||
msgid "Initializing netconsole"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifdown-eth:42 ../sysconfig/network-scripts/ifdown-eth:48
|
||||
+#: ../sysconfig/network-scripts/ifdown-eth:46 ../sysconfig/network-scripts/ifdown-eth:52
|
||||
msgid "Device ${DEVICE} has MAC address ${FOUNDMACADDR}, instead of configured address ${HWADDR}. Ignoring."
|
||||
msgstr ""
|
||||
|
||||
@@ -164,7 +160,7 @@ msgstr ""
|
||||
msgid "FAILED"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:286
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:301
|
||||
msgid "Determining IPv6 information for ${DEVICE}..."
|
||||
msgstr ""
|
||||
|
||||
@@ -176,8 +172,8 @@ msgstr ""
|
||||
msgid "$0: Usage: daemon [+/-nicelevel] {program}"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-aliases:165
|
||||
-msgid "error in $FILE: invalid alias number"
|
||||
+#: ../sysconfig/network-scripts/network-functions-ipv6:798
|
||||
+msgid "Missing parameter 'IPv6 MTU' (arg 2)"
|
||||
msgstr ""
|
||||
|
||||
#: ../sysconfig/network-scripts/network-functions-ipv6:159
|
||||
@@ -188,7 +184,7 @@ msgstr ""
|
||||
msgid "Usage: ifup <configuration>"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup:126 ../sysconfig/network-scripts/ifup:127
|
||||
+#: ../sysconfig/network-scripts/ifup:127 ../sysconfig/network-scripts/ifup:128
|
||||
msgid "ERROR: could not add vlan ${VID} as ${DEVICE} on dev ${PHYSDEV}"
|
||||
msgstr ""
|
||||
|
||||
@@ -196,11 +192,11 @@ msgstr ""
|
||||
msgid "ERROR: ${DEVICE} did not come up!"
|
||||
msgstr ""
|
||||
|
||||
-#: ../ppp/ip-up.ipv6to4:138 ../sysconfig/network-scripts/ifup-ipv6:240
|
||||
+#: ../sysconfig/network-scripts/ifup-ipv6:240
|
||||
msgid "Warning: interface 'tun6to4' does not support 'IPV6_DEFAULTGW', ignored"
|
||||
msgstr ""
|
||||
|
||||
-#: ../rc.d/init.d/network:133 ../rc.d/init.d/network:140
|
||||
+#: ../rc.d/init.d/network:121 ../rc.d/init.d/network:128
|
||||
msgid "Bringing up interface $i: "
|
||||
msgstr ""
|
||||
|
||||
@@ -208,7 +204,7 @@ msgstr ""
|
||||
msgid "Usage: $0 {start|stop|reload|restart|showsysctl}"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:80
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:87
|
||||
msgid "Device ${DEVICE} does not seem to be present, delaying initialization."
|
||||
msgstr ""
|
||||
|
||||
@@ -220,7 +216,7 @@ msgstr ""
|
||||
msgid "Missing parameter 'device' (arg 1)"
|
||||
msgstr ""
|
||||
|
||||
-#: ../rc.d/init.d/network:82
|
||||
+#: ../rc.d/init.d/network:70
|
||||
msgid "No 802.1Q VLAN support available in kernel."
|
||||
msgstr ""
|
||||
|
||||
@@ -256,7 +252,7 @@ msgstr ""
|
||||
msgid "error in $FILE: IPADDR_START greater than IPADDR_END"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:260
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:275
|
||||
msgid "Error adding default gateway ${GATEWAY} for ${DEVICE}."
|
||||
msgstr ""
|
||||
|
||||
@@ -264,7 +260,7 @@ msgstr ""
|
||||
msgid " OK "
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/network-functions:540
|
||||
+#: ../sysconfig/network-scripts/network-functions:545
|
||||
msgid "INFO "
|
||||
msgstr ""
|
||||
|
||||
@@ -276,7 +272,7 @@ msgstr ""
|
||||
msgid "Users cannot control this device."
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup:89
|
||||
+#: ../sysconfig/network-scripts/ifup:90
|
||||
msgid "PHYSDEV should be set for device ${DEVICE}"
|
||||
msgstr ""
|
||||
|
||||
@@ -284,7 +280,7 @@ msgstr ""
|
||||
msgid "radvd not (properly) installed, triggering failed"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:177 ../sysconfig/network-scripts/ifup-eth:290
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:191 ../sysconfig/network-scripts/ifup-eth:305
|
||||
msgid " failed."
|
||||
msgstr ""
|
||||
|
||||
@@ -296,7 +292,7 @@ msgstr ""
|
||||
msgid "*** Warning -- SELinux ${SELINUXTYPE} policy relabel is required. "
|
||||
msgstr ""
|
||||
|
||||
-#: ../rc.d/init.d/network:258
|
||||
+#: ../rc.d/init.d/network:231
|
||||
msgid "Configured devices:"
|
||||
msgstr ""
|
||||
|
||||
@@ -332,23 +328,15 @@ msgstr ""
|
||||
msgid "Invalid tunnel type $TYPE"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-ppp:48
|
||||
-msgid "pppd does not exist or is not executable for ${DEVICE}"
|
||||
-msgstr ""
|
||||
-
|
||||
#: ../sysconfig/network-scripts/ifup:37
|
||||
msgid "$0: configuration for ${1} not found."
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:165
|
||||
-msgid "Determining IP information for ${DEVICE}..."
|
||||
-msgstr ""
|
||||
-
|
||||
#: ../systemd/fedora-autorelabel:19
|
||||
msgid "*** /etc/selinux/config indicates you want to manually fix labeling"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/network-functions:537
|
||||
+#: ../sysconfig/network-scripts/network-functions:542
|
||||
msgid "WARN "
|
||||
msgstr ""
|
||||
|
||||
@@ -360,10 +348,6 @@ msgstr ""
|
||||
msgid "netconsole: can't resolve MAC address of $SYSLOGADDR"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-ppp:46
|
||||
-msgid "ifup-ppp for ${DEVICE} exiting"
|
||||
-msgstr ""
|
||||
-
|
||||
#: ../sysconfig/network-scripts/ifdown-routes:5
|
||||
msgid "usage: ifdown-routes <net-device> [<nickname>]"
|
||||
msgstr ""
|
||||
@@ -372,7 +356,7 @@ msgstr ""
|
||||
msgid "Bridge support not available: brctl not found"
|
||||
msgstr ""
|
||||
|
||||
-#: ../rc.d/init.d/network:261
|
||||
+#: ../rc.d/init.d/network:234
|
||||
msgid "Currently active devices:"
|
||||
msgstr ""
|
||||
|
||||
@@ -388,7 +372,7 @@ msgstr ""
|
||||
msgid "Missing parameter 'IPv4 address' (arg 1)"
|
||||
msgstr ""
|
||||
|
||||
-#: ../rc.d/init.d/network:232
|
||||
+#: ../rc.d/init.d/network:213
|
||||
msgid "Shutting down interface $i: "
|
||||
msgstr ""
|
||||
|
||||
@@ -432,10 +416,6 @@ msgstr ""
|
||||
msgid "Missing parameter 'global IPv4 address' (arg 2)"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-ppp:74
|
||||
-msgid "/etc/sysconfig/network-scripts/chat-${DEVNAME} does not exist"
|
||||
-msgstr ""
|
||||
-
|
||||
#: ../rc.d/init.d/netconsole:114
|
||||
msgid "netconsole module not loaded"
|
||||
msgstr ""
|
||||
@@ -452,10 +432,6 @@ msgstr ""
|
||||
msgid "6to4 configuration is not valid"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-ppp:82
|
||||
-msgid "Setting up a new ${PEERCONF} config file"
|
||||
-msgstr ""
|
||||
-
|
||||
#: ../sysconfig/network-scripts/ifup-aliases:316
|
||||
msgid "error in $FILE: IPADDR_START and IPADDR_END don't agree"
|
||||
msgstr ""
|
||||
@@ -464,11 +440,7 @@ msgstr ""
|
||||
msgid "$base $killlevel"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-ppp:59
|
||||
-msgid "adsl-start does not exist or is not executable for ${DEVICE}"
|
||||
-msgstr ""
|
||||
-
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:167
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:181
|
||||
msgid " failed; no link present. Check cable?"
|
||||
msgstr ""
|
||||
|
||||
@@ -480,14 +452,14 @@ msgstr ""
|
||||
msgid "Device '$device' enabling didn't work"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-ppp:77
|
||||
-msgid "/etc/sysconfig/network-scripts/chat-${DEVNAME} does not exist for ${DEVICE}"
|
||||
-msgstr ""
|
||||
-
|
||||
#: ../sysconfig/network-scripts/network-functions-ipv6:186
|
||||
msgid "Cannot add IPv6 address '$address' on dev '$device'"
|
||||
msgstr ""
|
||||
|
||||
+#: ../service:81
|
||||
+msgid "The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl."
|
||||
+msgstr ""
|
||||
+
|
||||
#: ../sysconfig/network-scripts/ifup-ippp:376
|
||||
msgid "Warning: link doesn't support IPv6 using encapsulation 'rawip'"
|
||||
msgstr ""
|
||||
@@ -508,35 +480,27 @@ msgstr ""
|
||||
msgid "Disabling netconsole"
|
||||
msgstr ""
|
||||
|
||||
-#: ../systemd/fedora-configure:19
|
||||
-msgid "Resetting hostname ${HOSTNAME}: "
|
||||
-msgstr ""
|
||||
-
|
||||
-#: ../rc.d/init.d/network:246
|
||||
+#: ../rc.d/init.d/network:219
|
||||
msgid "Shutting down loopback interface: "
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:264
|
||||
-msgid "Erorr adding default gateway for ${REALDEVICE}."
|
||||
-msgstr ""
|
||||
-
|
||||
#: ../systemd/fedora-autorelabel:28
|
||||
msgid "*** system size and speed of hard drives."
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/network-functions:531
|
||||
-msgid "DEBUG "
|
||||
+#: ../sysconfig/network-scripts/network-functions-ipv6:710
|
||||
+msgid "Unsupported selection '$selection' specified (arg 2)"
|
||||
msgstr ""
|
||||
|
||||
#: ../sysconfig/network-scripts/network-functions-ipv6:959
|
||||
msgid "No reason given for sending trigger to radvd"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-ipx:7
|
||||
-msgid "usage: $0 <net-device>"
|
||||
+#: ../service:78
|
||||
+msgid "Redirecting to /bin/systemctl ${ACTION} ${OPTIONS} ${SERVICE}.service"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:174 ../sysconfig/network-scripts/ifup-eth:288
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:188 ../sysconfig/network-scripts/ifup-eth:303
|
||||
msgid " done."
|
||||
msgstr ""
|
||||
|
||||
@@ -560,10 +524,6 @@ msgstr ""
|
||||
msgid "$STRING"
|
||||
msgstr ""
|
||||
|
||||
-#: ../rc.d/init.d/functions:419
|
||||
-msgid "${base} dead but subsys locked"
|
||||
-msgstr ""
|
||||
-
|
||||
#: ../sysconfig/network-scripts/ifup-aliases:175
|
||||
msgid "error in $FILE: already seen ipaddr $IPADDR in $ipseen"
|
||||
msgstr ""
|
||||
@@ -572,19 +532,19 @@ msgstr ""
|
||||
msgid "Stopping $prog (via systemctl): "
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:237
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:252
|
||||
msgid "Error adding address ${ipaddr[$idx]} for ${DEVICE}."
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/network-functions-ipv6:710
|
||||
-msgid "Unsupported selection '$selection' specified (arg 2)"
|
||||
+#: ../sysconfig/network-scripts/network-functions:536
|
||||
+msgid "DEBUG "
|
||||
msgstr ""
|
||||
|
||||
#: ../sysconfig/network-scripts/network-functions-ipv6:1014
|
||||
msgid "Pidfile '$pidfile' is empty, cannot send trigger to radvd"
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-eth:201
|
||||
+#: ../sysconfig/network-scripts/ifup-eth:215
|
||||
msgid "Failed to bring up ${DEVICE}."
|
||||
msgstr ""
|
||||
|
||||
@@ -592,7 +552,7 @@ msgstr ""
|
||||
msgid "Cannot enable IPv6 privacy method '$IPV6_PRIVACY', not supported by kernel"
|
||||
msgstr ""
|
||||
|
||||
-#: ../rc.d/init.d/network:152
|
||||
+#: ../rc.d/init.d/network:140
|
||||
msgid "Legacy static-route support not available: /sbin/route not found"
|
||||
msgstr ""
|
||||
|
||||
@@ -612,7 +572,7 @@ msgstr ""
|
||||
msgid "${base} (pid $pid) is running..."
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup:96
|
||||
+#: ../sysconfig/network-scripts/ifup:97
|
||||
msgid "No 802.1Q VLAN support available in kernel for device ${DEVICE}"
|
||||
msgstr ""
|
||||
|
||||
@@ -620,11 +580,11 @@ msgstr ""
|
||||
msgid "Given IPv6 default device '$device' doesn't exist or isn't up"
|
||||
msgstr ""
|
||||
|
||||
-#: ../ppp/ip-up.ipv6to4:87 ../sysconfig/network-scripts/ifup-ipv6:198
|
||||
+#: ../sysconfig/network-scripts/ifup-ipv6:198
|
||||
msgid "Given IPv4 address '$ipv4addr' is not globally usable"
|
||||
msgstr ""
|
||||
|
||||
-#: ../ppp/ip-up.ipv6to4:186 ../sysconfig/network-scripts/ifup-ipv6:289
|
||||
+#: ../sysconfig/network-scripts/ifup-ipv6:289
|
||||
msgid "Error occurred while calculating the IPv6to4 prefix"
|
||||
msgstr ""
|
||||
|
||||
@@ -632,11 +592,7 @@ msgstr ""
|
||||
msgid "Restarting $prog (via systemctl): "
|
||||
msgstr ""
|
||||
|
||||
-#: ../sysconfig/network-scripts/ifup-ppp:45
|
||||
-msgid "pppd does not exist or is not executable"
|
||||
-msgstr ""
|
||||
-
|
||||
-#: ../sysconfig/network-scripts/network-functions:534
|
||||
+#: ../sysconfig/network-scripts/network-functions:539
|
||||
msgid "ERROR "
|
||||
msgstr ""
|
||||
|
||||
--
|
||||
1.9.0
|
||||
|
||||
3
README.md
Normal file
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Additional information
|
||||
|
||||
Check upstream's [README.md](https://github.com/fedora-sysv/initscripts/blob/master/README.md) for more info.
|
||||
1013
initscripts.spec
1013
initscripts.spec
File diff suppressed because it is too large
Load diff
29
rebase.sh
Executable file
29
rebase.sh
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
|
||||
# We always do a rebase to new upstream's tarball for Fedora Rawhide.
|
||||
#
|
||||
# For non-Rawhide Fedora releases, we can sometimes backport specific patches,
|
||||
# if the rebase is not possible.
|
||||
#
|
||||
# This scripts automates this process.
|
||||
|
||||
# Since we are operating in a dist-git repository where we can't fix things with
|
||||
# --force-push if something goes wrong, we need to be extra careful and exit
|
||||
# immediately if something fails.
|
||||
set -e
|
||||
|
||||
curl https://raw.githubusercontent.com/fedora-sysv/initscripts/master/initscripts.spec -o initscripts.spec || exit 1
|
||||
spectool -g initscripts.spec
|
||||
|
||||
# Make a local scratch build in mock first. If it fails, do not upload new tarball!
|
||||
# srpm_file="$(basename $(fedpkg srpm | grep -i "wrote" | cut -d ':' -f 2))"
|
||||
# arch="$(uname -p)"
|
||||
|
||||
# mock -r "fedora-rawhide-${arch}" "${srpm_file}" || exit 2
|
||||
|
||||
# Scratch build passed, the build should pass in Koji as well. Let's proceed:
|
||||
fedpkg new-sources "$(basename $(spectool -S -l initscripts.spec | gawk '{print $2;}'))" || exit 3
|
||||
git add initscripts.spec
|
||||
git commit -m "$(grep Version initscripts.spec | gawk '{print $2;}')"
|
||||
|
||||
git show
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
cf63862785d224394053f081865eb853 initscripts-9.54.tar.bz2
|
||||
SHA512 (initscripts-10.27.tar.gz) = 951f88158eaf7409f7d65c9875c9ba2611e6a805c17112ddbb34167a1638d87d2433c3962d20e66564669f3424dd7be1265cbe03a1a7d6b1c5413ed43d80148d
|
||||
|
|
|
|||
64
tests/Sanity-init-scripts-LSB/Makefile
Normal file
64
tests/Sanity-init-scripts-LSB/Makefile
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Makefile of /CoreOS/initscripts/Sanity/init-scripts-LSB
|
||||
# Description: Init scripts should meet LSB specifications
|
||||
# Author: Yulia Kopkova <ykopkova@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2009 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/initscripts/Sanity/init-scripts-LSB
|
||||
export TESTVERSION=1.4
|
||||
|
||||
BUILT_FILES=
|
||||
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
.PHONY: all install download clean
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
chmod a+x runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ $(BUILT_FILES)
|
||||
|
||||
|
||||
include /usr/share/rhts/lib/rhts-make.include
|
||||
|
||||
$(METADATA): Makefile
|
||||
@echo "Owner: Jan Scotka <jscotka@redhat.com>" > $(METADATA)
|
||||
@echo "Name: $(TEST)" >> $(METADATA)
|
||||
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||
@echo "Description: Init scripts should meet LSB specifications" >> $(METADATA)
|
||||
@echo "Type: Sanity" >> $(METADATA)
|
||||
@echo "TestTime: 5m" >> $(METADATA)
|
||||
@echo "RunFor: initscripts" >> $(METADATA)
|
||||
@echo "Requires: initscripts" >> $(METADATA)
|
||||
@echo "Priority: Normal" >> $(METADATA)
|
||||
@echo "License: GPLv2" >> $(METADATA)
|
||||
@echo "Confidential: no" >> $(METADATA)
|
||||
@echo "Destructive: no" >> $(METADATA)
|
||||
@echo "Releases: RedHatEnterpriseLinux6" >> $(METADATA)
|
||||
|
||||
rhts-lint $(METADATA)
|
||||
3
tests/Sanity-init-scripts-LSB/PURPOSE
Normal file
3
tests/Sanity-init-scripts-LSB/PURPOSE
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
PURPOSE of /CoreOS/initscripts/Sanity/init-scripts-LSB
|
||||
Description: Init scripts should meet LSB specifications
|
||||
Author: Yulia Kopkova <ykopkova@redhat.com>
|
||||
228
tests/Sanity-init-scripts-LSB/runtest.sh
Executable file
228
tests/Sanity-init-scripts-LSB/runtest.sh
Executable file
|
|
@ -0,0 +1,228 @@
|
|||
#!/bin/bash
|
||||
# vim: dict=/usr/share/rhts-library/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# runtest.sh of /CoreOS/initscripts/Sanity/init-scripts-LSB
|
||||
# Description: Init scripts should meet LSB specifications
|
||||
# Author: Jan Scotka <jscotka@redhat.com>, Yulia Kopkova <ykopkova@redhat.com>
|
||||
#
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#
|
||||
# Copyright (c) 2009 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 rhts environment
|
||||
. /usr/bin/rhts-environment.sh
|
||||
. /usr/share/rhts-library/rhtslib.sh
|
||||
|
||||
PACKAGE="initscripts"
|
||||
|
||||
|
||||
SRV_NETCONSOLE=netconsole
|
||||
SRV_NETFS=netfs
|
||||
TRG_REMOTEFS=remote-fs.target
|
||||
SRV_NETWORK=network
|
||||
|
||||
rlJournalStart
|
||||
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm $PACKAGE
|
||||
rlRun "useradd testuserqa" 0 "Add test user"
|
||||
rlFileBackup /etc/sysconfig/netconsole
|
||||
if rlIsRHEL '<7'; then #there is no syslog in rhel7 and highier
|
||||
rlRun "sed -i -e 's,^# SYSLOGADDR=,SYSLOGADDR=redhat.com,' /etc/sysconfig/netconsole" 0 "Set remote syslog server address /etc/sysconfig/netconsole"
|
||||
fi
|
||||
rlPhaseEnd
|
||||
|
||||
|
||||
rlPhaseStartTest "netconsole service LSB compliance test"
|
||||
if ls /lib*/modules/*/kernel/drivers/net/netconsole.ko*; then
|
||||
rlRun "ls /lib*/modules/*/kernel/drivers/net/netconsole.ko*" 0
|
||||
if rlIsRHEL '<7'; then
|
||||
|
||||
SERVICE=$SRV_NETCONSOLE
|
||||
rlServiceStop $SERVICE
|
||||
rlLog ">>>>>>>>> service start"
|
||||
rlRun "service $SERVICE start" 0 " Service must start without problem "
|
||||
rlRun "service $SERVICE status" 0 " Then Status command "
|
||||
rlRun "service $SERVICE start" 0 " Already started service "
|
||||
rlRun "service $SERVICE status" 0 " Again status command "
|
||||
|
||||
rlLog ">>>>>>>>> service restart"
|
||||
rlRun "service $SERVICE restart" 0 " Restarting of service "
|
||||
rlRun "service $SERVICE status" 0 " Status command "
|
||||
|
||||
rlLog ">>>>>>>>> service stop"
|
||||
rlRun "service $SERVICE stop" 0 " Stopping service "
|
||||
rlRun "service $SERVICE status" 3 " Status of stopped service "
|
||||
rlRun "service $SERVICE stop" 0 " Stopping service again "
|
||||
rlRun "service $SERVICE status" 3 " Status of stopped service "
|
||||
|
||||
rlLog ">>>>>>>>> insufficient rights"
|
||||
rlRun "service $SERVICE start " 0 " Starting service for restarting under nonpriv user "
|
||||
rlRun "su testuserqa -c 'service $SERVICE restart'" 1 "Insufficient rights, restarting resrvice under nonprivileged user must fail "
|
||||
|
||||
rlLog ">>>>>>>>> operations"
|
||||
rlServiceStop $SERVICE
|
||||
rlRun "service $SERVICE start" 0 " Service have to implement start function "
|
||||
rlRun "service $SERVICE restart" 0 " Service have to implement restart function "
|
||||
rlRun "service $SERVICE status" 0 " Service have to implement status function "
|
||||
rlRun "service $SERVICE condrestart" 0 " Service have to implement condrestart function "
|
||||
rlRun "service $SERVICE reload" 0 " Service have to implement reload function "
|
||||
rlRun "service $SERVICE force-reload" 0 " Service have to implement force-reload function "
|
||||
|
||||
rlLog ">>>>>>>>> nonexist operations"
|
||||
rlRun "service $SERVICE noexistop" 2 " Testing proper return code when nonexisting function "
|
||||
|
||||
rlServiceRestore $SERVICE
|
||||
fi # rhel 6 or less
|
||||
else
|
||||
rlLog ">>>> no netconsole kernel module appear here"
|
||||
rlRun "ls /lib*/modules/*/kernel/drivers/net/netconsole.ko*" 1,2
|
||||
fi
|
||||
rlLog "NIC should support polling, NETPOLL should be compliled in kernel and netconsole module should be loaded"
|
||||
rlLog "`cat /usr/src/kernels/$(uname -r)/.config | grep -i poll`"
|
||||
rlLog "netconsole module: `lsmod | grep -i netconsole && echo true || echo false`"
|
||||
rlLog "`cat /var/log/messages | grep -i netconsole | tail -n 10`"
|
||||
rlPhaseEnd
|
||||
|
||||
# for RHEL6 and lower
|
||||
if rlIsRHEL '<7'; then
|
||||
rlPhaseStartTest "netfs service LSB compliance test"
|
||||
|
||||
SERVICE=$SRV_NETFS
|
||||
rlServiceStop $SERVICE
|
||||
rlLog ">>>>>>>>> service start"
|
||||
rlRun "service $SERVICE start" 0 " Service must start without problem "
|
||||
rlRun "service $SERVICE status" 0 " Then Status command "
|
||||
rlRun "service $SERVICE start" 0 " Already started service "
|
||||
rlRun "service $SERVICE status" 0 " Again status command "
|
||||
|
||||
rlLog ">>>>>>>>> service restart"
|
||||
rlRun "service $SERVICE restart" 0 " Restarting of service "
|
||||
rlRun "service $SERVICE status" 0 " Status command "
|
||||
|
||||
rlLog ">>>>>>>>> service stop"
|
||||
rlRun "service $SERVICE stop" 0 " Stopping service "
|
||||
rlRun "service $SERVICE status" 3 " Status of stopped service "
|
||||
rlRun "service $SERVICE stop" 0 " Stopping service again "
|
||||
rlRun "service $SERVICE status" 3 " Status of stopped service "
|
||||
|
||||
rlLog ">>>>>>>>> insufficient rights"
|
||||
rlRun "service $SERVICE start " 0 " Starting service for restarting under nonpriv user "
|
||||
rlRun "su testuserqa -c 'service $SERVICE restart'" 4 "Insufficient rights, restarting resrvice under nonprivileged user must fail "
|
||||
|
||||
rlLog ">>>>>>>>> operations"
|
||||
rlServiceStop $SERVICE
|
||||
rlRun "service $SERVICE start" 0 " Service have to implement start function "
|
||||
rlRun "service $SERVICE restart" 0 " Service have to implement restart function "
|
||||
rlRun "service $SERVICE status" 0 " Service have to implement status function "
|
||||
|
||||
rlLog ">>>>>>>>> nonexist operations"
|
||||
rlRun "service $SERVICE noexistop" 2 " Testing proper return code when nonexisting function "
|
||||
|
||||
rlServiceRestore $SERVICE
|
||||
|
||||
rlPhaseEnd
|
||||
else
|
||||
rlPhaseStartTest "remote-fs target LSB compliance test"
|
||||
|
||||
TARGET=$TRG_REMOTEFS
|
||||
rlServiceStop $TARGET
|
||||
rlLog ">>>>>>>>> target start"
|
||||
rlRun "service $TARGET start" 0 " Target must start without problem "
|
||||
rlRun "service $TARGET status" 0 " Then Status command "
|
||||
rlRun "service $TARGET start" 0 " Already started target "
|
||||
rlRun "service $TARGET status" 0 " Again status command "
|
||||
|
||||
rlLog ">>>>>>>>> target restart"
|
||||
rlRun "service $TARGET restart" 0 " Restarting target "
|
||||
rlRun "service $TARGET status" 0 " Status command "
|
||||
|
||||
rlLog ">>>>>>>>> target stop"
|
||||
rlRun "service $TARGET stop" 0 " Stopping target "
|
||||
rlRun "service $TARGET status" 3 " Status of stopped target "
|
||||
rlRun "service $TARGET stop" 0 " Stopping target again "
|
||||
rlRun "service $TARGET status" 3 " Status of stopped target "
|
||||
|
||||
rlLog ">>>>>>>>> insufficient rights"
|
||||
rlRun "service $TARGET start " 0 " Starting target for restarting under nonpriv user "
|
||||
rlRun "su testuserqa -c 'service $TARGET restart'" 1 " Insufficient rights, restarting target under nonprivileged user must fail " # returns 1 instead of 4 because of polkit
|
||||
|
||||
rlLog ">>>>>>>>> operations"
|
||||
rlServiceStop $TARGET
|
||||
rlRun "service $TARGET start" 0 " Target have to implement start function "
|
||||
rlRun "service $TARGET restart" 0 " Target have to implement restart function "
|
||||
rlRun "service $TARGET status" 0 " Target have to implement status function "
|
||||
|
||||
rlLog ">>>>>>>>> nonexist operations"
|
||||
rlRun "service $TARGET noexistop" 2 " Testing proper return code when nonexisting function "
|
||||
|
||||
rlServiceRestore $TARGET
|
||||
|
||||
rlPhaseEnd
|
||||
fi
|
||||
|
||||
|
||||
# rlPhaseStartTest "$SRV_NETWORK service LSB compliance test"
|
||||
#
|
||||
# SERVICE=$SRV_NETWORK
|
||||
# rlServiceStop $SERVICE
|
||||
# rlLog ">>>>>>>>> service start"
|
||||
# rlRun "service $SERVICE start" 0 " Service must start without problem "
|
||||
# rlRun "service $SERVICE status" 0 " Then Status command "
|
||||
# rlRun "service $SERVICE start" 1,0 " Already started service "
|
||||
# rlRun "service $SERVICE status" 0 " Again status command "
|
||||
|
||||
# rlLog ">>>>>>>>> service restart"
|
||||
# rlRun "service $SERVICE restart" 0 " Restarting of service "
|
||||
# rlRun "service $SERVICE status" 0 " Status command "
|
||||
|
||||
# rlLog ">>>>>>>>> service stop"
|
||||
# rlRun "service $SERVICE stop" 0 " Stopping service "
|
||||
# rlRun "service $SERVICE status" 0 " Status of stopped service "
|
||||
# rlRun "service $SERVICE stop" 0 " Stopping service again "
|
||||
# rlRun "service $SERVICE status" 0 " Status of stopped service "
|
||||
|
||||
# rlLog ">>>>>>>>> insufficient rights"
|
||||
# rlRun "service $SERVICE start " 0 " Starting service for restarting under nonpriv user "
|
||||
# rlRun "su testuserqa -c 'service $SERVICE restart'" 4 "Insufficient rights, restarting resrvice under nonprivileged user must fail "
|
||||
|
||||
# rlLog ">>>>>>>>> operations"
|
||||
# rlServiceStop $SERVICE
|
||||
# rlRun "service $SERVICE start" 0 " Service have to implement start function "
|
||||
# rlRun "service $SERVICE restart" 0 " Service have to implement restart function "
|
||||
# rlRun "service $SERVICE status" 0 " Service have to implement status function "
|
||||
# rlRun "service $SERVICE reload" 0 " Service have to implement reload function "
|
||||
# rlRun "service $SERVICE force-reload" 0 " Service have to implement force-reload function "
|
||||
|
||||
# rlLog ">>>>>>>>> nonexist operations"
|
||||
# rlRun "service $SERVICE noexistop" 2 " Testing proper return code when nonexisting function "
|
||||
|
||||
# rlServiceRestore $SERVICE
|
||||
# service $SERVICE start
|
||||
rlPhaseEnd
|
||||
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "userdel -fr testuserqa" 0 "Remove test user"
|
||||
rlFileRestore
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalPrintText
|
||||
rlJournalEnd
|
||||
291
tests/standard-inventory-qcow2
Executable file
291
tests/standard-inventory-qcow2
Executable file
|
|
@ -0,0 +1,291 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import argparse
|
||||
import errno
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import shlex
|
||||
import signal
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import time
|
||||
import distutils.util
|
||||
|
||||
IDENTITY = """
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIEpQIBAAKCAQEA1DrTSXQRF8isQQfPfK3U+eFC4zBrjur+Iy15kbHUYUeSHf5S
|
||||
jXPYbHYqD1lHj4GJajC9okle9rykKFYZMmJKXLI6987wZ8vfucXo9/kwS6BDAJto
|
||||
ZpZSj5sWCQ1PI0Ce8CbkazlTp5NIkjRfhXGP8mkNKMEhdNjaYceO49ilnNCIxhpb
|
||||
eH5dH5hybmQQNmnzf+CGCCLBFmc4g3sFbWhI1ldyJzES5ZX3ahjJZYRUfnndoUM/
|
||||
TzdkHGqZhL1EeFAsv5iV65HuYbchch4vBAn8jDMmHh8G1ixUCL3uAlosfarZLLyo
|
||||
3HrZ8U/llq7rXa93PXHyI/3NL/2YP3OMxE8baQIDAQABAoIBAQCxuOUwkKqzsQ9W
|
||||
kdTWArfj3RhnKigYEX9qM+2m7TT9lbKtvUiiPc2R3k4QdmIvsXlCXLigyzJkCsqp
|
||||
IJiPEbJV98bbuAan1Rlv92TFK36fBgC15G5D4kQXD/ce828/BSFT2C3WALamEPdn
|
||||
v8Xx+Ixjokcrxrdeoy4VTcjB0q21J4C2wKP1wEPeMJnuTcySiWQBdAECCbeZ4Vsj
|
||||
cmRdcvL6z8fedRPtDW7oec+IPkYoyXPktVt8WsQPYkwEVN4hZVBneJPCcuhikYkp
|
||||
T3WGmPV0MxhUvCZ6hSG8D2mscZXRq3itXVlKJsUWfIHaAIgGomWrPuqC23rOYCdT
|
||||
5oSZmTvFAoGBAPs1FbbxDDd1fx1hisfXHFasV/sycT6ggP/eUXpBYCqVdxPQvqcA
|
||||
ktplm5j04dnaQJdHZ8TPlwtL+xlWhmhFhlCFPtVpU1HzIBkp6DkSmmu0gvA/i07Z
|
||||
pzo5Z+HRZFzruTQx6NjDtvWwiXVLwmZn2oiLeM9xSqPu55OpITifEWNjAoGBANhH
|
||||
XwV6IvnbUWojs7uiSGsXuJOdB1YCJ+UF6xu8CqdbimaVakemVO02+cgbE6jzpUpo
|
||||
krbDKOle4fIbUYHPeyB0NMidpDxTAPCGmiJz7BCS1fCxkzRgC+TICjmk5zpaD2md
|
||||
HCrtzIeHNVpTE26BAjOIbo4QqOHBXk/WPen1iC3DAoGBALsD3DSj46puCMJA2ebI
|
||||
2EoWaDGUbgZny2GxiwrvHL7XIx1XbHg7zxhUSLBorrNW7nsxJ6m3ugUo/bjxV4LN
|
||||
L59Gc27ByMvbqmvRbRcAKIJCkrB1Pirnkr2f+xx8nLEotGqNNYIawlzKnqr6SbGf
|
||||
Y2wAGWKmPyEoPLMLWLYkhfdtAoGANsFa/Tf+wuMTqZuAVXCwhOxsfnKy+MNy9jiZ
|
||||
XVwuFlDGqVIKpjkmJyhT9KVmRM/qePwgqMSgBvVOnszrxcGRmpXRBzlh6yPYiQyK
|
||||
2U4f5dJG97j9W7U1TaaXcCCfqdZDMKnmB7hMn8NLbqK5uLBQrltMIgt1tjIOfofv
|
||||
BNx0raECgYEApAvjwDJ75otKz/mvL3rUf/SNpieODBOLHFQqJmF+4hrSOniHC5jf
|
||||
f5GS5IuYtBQ1gudBYlSs9fX6T39d2avPsZjfvvSbULXi3OlzWD8sbTtvQPuCaZGI
|
||||
Df9PUWMYZ3HRwwdsYovSOkT53fG6guy+vElUEDkrpZYczROZ6GUcx70=
|
||||
-----END RSA PRIVATE KEY-----
|
||||
"""
|
||||
|
||||
USER_DATA = """#cloud-config
|
||||
users:
|
||||
- default
|
||||
- name: root
|
||||
groups: sudo
|
||||
shell: /bin/bash
|
||||
ssh_authorized_keys:
|
||||
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDUOtNJdBEXyKxBB898rdT54ULjMGuO6v4jLXmRsdRhR5Id/lKNc9hsdioPWUePgYlqML2iSV72vKQoVhkyYkpcsjr3zvBny9+5xej3+TBLoEMAm2hmllKPmxYJDU8jQJ7wJuRrOVOnk0iSNF+FcY/yaQ0owSF02Nphx47j2KWc0IjGGlt4fl0fmHJuZBA2afN/4IYIIsEWZziDewVtaEjWV3InMRLllfdqGMllhFR+ed2hQz9PN2QcapmEvUR4UCy/mJXrke5htyFyHi8ECfyMMyYeHwbWLFQIve4CWix9qtksvKjcetnxT+WWrutdr3c9cfIj/c0v/Zg/c4zETxtp standard-test-qcow2
|
||||
ssh_pwauth: True
|
||||
chpasswd:
|
||||
list: |
|
||||
root:foobar
|
||||
expire: False
|
||||
runcmd:
|
||||
- mkfs.ext4 /dev/sdb
|
||||
- mount /dev/sdb /usr/local
|
||||
- sudo mount -o remount,rw /usr
|
||||
- mkdir /expected /output
|
||||
"""
|
||||
|
||||
def main(argv):
|
||||
parser = argparse.ArgumentParser(description="Inventory for a QCow2 test image")
|
||||
parser.add_argument("--list", action="store_true", help="Verbose output")
|
||||
parser.add_argument('--host', help="Get host variables")
|
||||
parser.add_argument("subjects", nargs="*", default=shlex.split(os.environ.get("TEST_SUBJECTS", "")))
|
||||
opts = parser.parse_args()
|
||||
|
||||
try:
|
||||
if opts.host:
|
||||
data = host(opts.host)
|
||||
else:
|
||||
data = list(opts.subjects)
|
||||
sys.stdout.write(json.dumps(data, indent=4, separators=(',', ': ')))
|
||||
except RuntimeError as ex:
|
||||
sys.stderr.write("{0}: {1}\n".format(os.path.basename(sys.argv[0]), str(ex)))
|
||||
return 1
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
def list(subjects):
|
||||
hosts = []
|
||||
variables = {}
|
||||
for subject in subjects:
|
||||
if subject.endswith((".qcow2", ".qcow2c")):
|
||||
vars = host(subject)
|
||||
if vars:
|
||||
hosts.append(subject)
|
||||
variables[subject] = vars
|
||||
return {"localhost": {"hosts": hosts, "vars": {}}, "subjects": {"hosts": hosts, "vars": {}},
|
||||
"_meta": {"hostvars": variables}}
|
||||
|
||||
|
||||
def start_qemu(image, cloudinit, log, disk_directory=None, disk_size=None, portrange=(2222, 5555)):
|
||||
for port in xrange(*portrange):
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
||||
try:
|
||||
sock.bind(("127.0.0.3", port))
|
||||
|
||||
if disk_size:
|
||||
return subprocess.Popen(["/usr/bin/qemu-system-x86_64", "-m", "1024", image,
|
||||
"-enable-kvm", "-snapshot", "-cdrom", cloudinit,
|
||||
"-hdb", disk_directory,
|
||||
"-net", "nic,model=virtio", "-net",
|
||||
"user,hostfwd=tcp:127.0.0.3:{0}-:22".format(port),
|
||||
"-device", "isa-serial,chardev=pts2", "-chardev", "file,id=pts2,path=" + log,
|
||||
"-display", "none"], stdout=open(os.devnull, 'w')), port
|
||||
else:
|
||||
return subprocess.Popen(["/usr/bin/qemu-system-x86_64", "-m", "1024", image,
|
||||
"-enable-kvm", "-snapshot", "-cdrom", cloudinit,
|
||||
"-net", "nic,model=virtio", "-net",
|
||||
"user,hostfwd=tcp:127.0.0.3:{0}-:22".format(port),
|
||||
"-device", "isa-serial,chardev=pts2", "-chardev", "file,id=pts2,path=" + log,
|
||||
"-display", "none"], stdout=open(os.devnull, 'w')), port
|
||||
except IOError:
|
||||
pass
|
||||
finally:
|
||||
sock.close()
|
||||
else:
|
||||
raise RuntimeError("unable to find free local port to map SSH to")
|
||||
|
||||
|
||||
def host(image):
|
||||
null = open(os.devnull, 'w')
|
||||
|
||||
try:
|
||||
tty = os.open("/dev/tty", os.O_WRONLY)
|
||||
os.dup2(tty, 2)
|
||||
except OSError:
|
||||
tty = None
|
||||
pass
|
||||
|
||||
# A directory for temporary stuff
|
||||
directory = tempfile.mkdtemp(prefix="inventory-cloud")
|
||||
identity = os.path.join(directory, "identity")
|
||||
with open(identity, 'w') as f:
|
||||
f.write(IDENTITY)
|
||||
os.chmod(identity, 0o600)
|
||||
metadata = os.path.join(directory, "meta-data")
|
||||
with open(metadata, 'w') as f:
|
||||
f.write("")
|
||||
userdata = os.path.join(directory, "user-data")
|
||||
with open(userdata, 'w') as f:
|
||||
f.write(USER_DATA)
|
||||
|
||||
# Create additional disk
|
||||
disk_size = None
|
||||
disk_directory = None
|
||||
try:
|
||||
disk_size = os.environ.get("EXTEND_DISK_SIZE")
|
||||
if disk_size:
|
||||
sys.stderr.write("\nCreate additional cloud init disk DISK SIZE {}\n".format(disk_size))
|
||||
|
||||
disk_directory = "{}/atomic-host-disk2-{}".format(directory, disk_size)
|
||||
subprocess.check_call(["qemu-img", "create", "-f", "qcow2", disk_directory, disk_size], stdout=null)
|
||||
|
||||
except KeyError:
|
||||
sys.stderr.write("\nCouldn't create additional cloud init disk DISK SIZE\n")
|
||||
pass
|
||||
|
||||
# Create our cloud init so we can log in
|
||||
cloudinit = os.path.join(directory, "cloud-init.iso")
|
||||
subprocess.check_call(["/usr/bin/genisoimage", "-input-charset", "utf-8",
|
||||
"-volid", "cidata", "-joliet", "-rock", "-quiet",
|
||||
"-output", cloudinit, userdata, metadata], stdout=null)
|
||||
|
||||
# Determine if virtual machine should be kept available for diagnosis after completion
|
||||
try:
|
||||
diagnose = distutils.util.strtobool(os.getenv("TEST_DEBUG", "0"))
|
||||
except ValueError:
|
||||
diagnose = 0
|
||||
|
||||
sys.stderr.write("Launching virtual machine for {0}\n".format(image))
|
||||
|
||||
# And launch the actual VM
|
||||
artifacts = os.environ.get("TEST_ARTIFACTS", os.path.join(os.getcwd(), "artifacts"))
|
||||
try:
|
||||
os.makedirs(artifacts)
|
||||
except OSError as exc:
|
||||
if exc.errno != errno.EEXIST or not os.path.isdir(artifacts):
|
||||
raise
|
||||
log = os.path.join(artifacts, "{0}.log".format(os.path.basename(image)))
|
||||
|
||||
proc = None # for failure detection
|
||||
cpe = None # for exception scoping
|
||||
for tries in xrange(0, 5):
|
||||
try:
|
||||
proc, port = start_qemu(image, cloudinit, log, disk_directory=disk_directory, disk_size=disk_size)
|
||||
break
|
||||
except subprocess.CalledProcessError as cpe:
|
||||
time.sleep(1)
|
||||
continue
|
||||
if proc is None:
|
||||
raise RuntimeError("Could not launch VM for qcow2 image"
|
||||
" '{0}':{1}".format(image, cpe.output))
|
||||
|
||||
# The variables
|
||||
variables = {"ansible_ssh_port": "{0}".format(port),
|
||||
"ansible_ssh_host": "127.0.0.3",
|
||||
"ansible_ssh_user": "root",
|
||||
"ansible_ssh_pass": "foobar",
|
||||
"ansible_ssh_private_key_file": identity,
|
||||
"ansible_ssh_common_args": "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"}
|
||||
|
||||
# Write out a handy inventory file, for our use and for debugging
|
||||
args = " ".join(["{0}='{1}'".format(*item) for item in variables.items()])
|
||||
inventory = os.path.join(directory, "inventory")
|
||||
with open(inventory, "w") as f:
|
||||
f.write("[subjects]\nlocalhost {1}\n".format(image, args))
|
||||
|
||||
# Wait for ssh to come up
|
||||
ping = ["/usr/bin/ansible", "--inventory", inventory, "localhost", "--module-name", "raw", "--args", "/bin/true"]
|
||||
|
||||
for tries in xrange(0, 30):
|
||||
try:
|
||||
(pid, ret) = os.waitpid(proc.pid, os.WNOHANG)
|
||||
if pid != 0:
|
||||
raise RuntimeError("qemu failed to launch qcow2 image: {0}".format(image))
|
||||
subprocess.check_call(ping, stdout=null, stderr=null)
|
||||
break
|
||||
except subprocess.CalledProcessError:
|
||||
time.sleep(3)
|
||||
else:
|
||||
# Kill the qemu process
|
||||
try:
|
||||
os.kill(proc.pid, signal.SIGTERM)
|
||||
except OSError:
|
||||
pass
|
||||
raise RuntimeError("could not access launched qcow2 image: {0}".format(image))
|
||||
|
||||
# Process of our parent
|
||||
ppid = os.getppid()
|
||||
|
||||
child = os.fork()
|
||||
if child:
|
||||
return variables
|
||||
|
||||
# Daemonize and watch the processes
|
||||
os.chdir("/")
|
||||
os.setsid()
|
||||
os.umask(0)
|
||||
|
||||
if tty is None:
|
||||
tty = null.fileno()
|
||||
|
||||
# Duplicate standard input to standard output and standard error.
|
||||
os.dup2(null.fileno(), 0)
|
||||
os.dup2(tty, 1)
|
||||
os.dup2(tty, 2)
|
||||
|
||||
# Now wait for the parent process to go away, then kill the VM
|
||||
while True:
|
||||
time.sleep(3)
|
||||
try:
|
||||
os.kill(ppid, 0)
|
||||
os.kill(proc.pid, 0)
|
||||
except OSError:
|
||||
break # Either of the processes no longer exist
|
||||
|
||||
if diagnose:
|
||||
sys.stderr.write("\n")
|
||||
sys.stderr.write("DIAGNOSE: ssh -p {0} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "
|
||||
"root@{1} # password: {2}\n".format(port, "127.0.0.3", "foobar"))
|
||||
sys.stderr.write("DIAGNOSE: export ANSIBLE_INVENTORY={0}\n".format(inventory))
|
||||
sys.stderr.write("DIAGNOSE: kill {0} # when finished\n".format(os.getpid()))
|
||||
|
||||
def _signal_handler(*args):
|
||||
sys.stderr.write("\nDIAGNOSE ending...\n")
|
||||
|
||||
signal.signal(signal.SIGTERM, _signal_handler)
|
||||
signal.pause()
|
||||
|
||||
# Kill the qemu process
|
||||
try:
|
||||
os.kill(proc.pid, signal.SIGTERM)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
shutil.rmtree(directory)
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv))
|
||||
12
tests/tests.yml
Normal file
12
tests/tests.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-beakerlib
|
||||
tags:
|
||||
- classic
|
||||
- container
|
||||
- atomic
|
||||
tests:
|
||||
- Sanity-init-scripts-LSB
|
||||
required_packages:
|
||||
- initscripts
|
||||
Loading…
Add table
Add a link
Reference in a new issue