1 |
aidecoe 15/06/26 22:27:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dracut-043.ebuild |
5 |
Log: |
6 |
Version bump. Rels bug #553270. This revision is 100% pure upstream, no |
7 |
Gentoo patches. (-: |
8 |
|
9 |
NEWS |
10 |
~~~~ |
11 |
- fixed dmsetup shutdown |
12 |
- new kernel command line option "rd.live.overlay.thin" |
13 |
- dmsquash: Add squashfs support to rd.live.fsimg |
14 |
- lvm: add support for LVM system id |
15 |
- split up the systemd dracut module |
16 |
- support for creating a UEFI boot executable via argument "--uefi" |
17 |
- network: split out kernel-network-modules, now in 90kernel-network-modules |
18 |
- support for ethernet point-to-point connections configured via DHCP |
19 |
- kernel-modules: install all HID drivers |
20 |
- dracut.pc pkg-config file |
21 |
- mount /dev, /dev/shm and /run noexec |
22 |
|
23 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key F0134531E1DBFAB5) |
24 |
|
25 |
Revision Changes Path |
26 |
1.196 sys-kernel/dracut/ChangeLog |
27 |
|
28 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/ChangeLog?rev=1.196&view=markup |
29 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/ChangeLog?rev=1.196&content-type=text/plain |
30 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/ChangeLog?r1=1.195&r2=1.196 |
31 |
|
32 |
Index: ChangeLog |
33 |
=================================================================== |
34 |
RCS file: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v |
35 |
retrieving revision 1.195 |
36 |
retrieving revision 1.196 |
37 |
diff -u -r1.195 -r1.196 |
38 |
--- ChangeLog 7 Jun 2015 16:39:50 -0000 1.195 |
39 |
+++ ChangeLog 26 Jun 2015 22:27:52 -0000 1.196 |
40 |
@@ -1,6 +1,26 @@ |
41 |
# ChangeLog for sys-kernel/dracut |
42 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
43 |
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.195 2015/06/07 16:39:50 aidecoe Exp $ |
44 |
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/ChangeLog,v 1.196 2015/06/26 22:27:52 aidecoe Exp $ |
45 |
+ |
46 |
+*dracut-043 (26 Jun 2015) |
47 |
+ |
48 |
+ 26 Jun 2015; Amadeusz Żołnowski <aidecoe@g.o> +dracut-043.ebuild: |
49 |
+ Version bump. Rels bug #553270. This revision is 100% pure upstream, no |
50 |
+ Gentoo patches. (-: |
51 |
+ |
52 |
+ NEWS |
53 |
+ ~~~~ |
54 |
+ - fixed dmsetup shutdown |
55 |
+ - new kernel command line option "rd.live.overlay.thin" |
56 |
+ - dmsquash: Add squashfs support to rd.live.fsimg |
57 |
+ - lvm: add support for LVM system id |
58 |
+ - split up the systemd dracut module |
59 |
+ - support for creating a UEFI boot executable via argument "--uefi" |
60 |
+ - network: split out kernel-network-modules, now in 90kernel-network-modules |
61 |
+ - support for ethernet point-to-point connections configured via DHCP |
62 |
+ - kernel-modules: install all HID drivers |
63 |
+ - dracut.pc pkg-config file |
64 |
+ - mount /dev, /dev/shm and /run noexec |
65 |
|
66 |
07 Jun 2015; Amadeusz Żołnowski <aidecoe@g.o> -dracut-041-r2.ebuild, |
67 |
+dracut-041-r3.ebuild, |
68 |
|
69 |
|
70 |
|
71 |
1.1 sys-kernel/dracut/dracut-043.ebuild |
72 |
|
73 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/dracut-043.ebuild?rev=1.1&view=markup |
74 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-kernel/dracut/dracut-043.ebuild?rev=1.1&content-type=text/plain |
75 |
|
76 |
Index: dracut-043.ebuild |
77 |
=================================================================== |
78 |
# Copyright 1999-2015 Gentoo Foundation |
79 |
# Distributed under the terms of the GNU General Public License v2 |
80 |
# $Header: /var/cvsroot/gentoo-x86/sys-kernel/dracut/dracut-043.ebuild,v 1.1 2015/06/26 22:27:52 aidecoe Exp $ |
81 |
|
82 |
EAPI=4 |
83 |
|
84 |
inherit bash-completion-r1 eutils linux-info multilib systemd |
85 |
|
86 |
DESCRIPTION="Generic initramfs generation tool" |
87 |
HOMEPAGE="http://dracut.wiki.kernel.org" |
88 |
SRC_URI="mirror://kernel/linux/utils/boot/${PN}/${P}.tar.xz" |
89 |
LICENSE="GPL-2" |
90 |
SLOT="0" |
91 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
92 |
IUSE="debug selinux systemd" |
93 |
|
94 |
RESTRICT="test" |
95 |
|
96 |
CDEPEND="virtual/udev |
97 |
systemd? ( >=sys-apps/systemd-199 ) |
98 |
" |
99 |
RDEPEND="${CDEPEND} |
100 |
app-arch/cpio |
101 |
>=app-shells/bash-4.0 |
102 |
>sys-apps/kmod-5[tools] |
103 |
|| ( |
104 |
>=sys-apps/sysvinit-2.87-r3 |
105 |
sys-apps/systemd[sysv-utils] |
106 |
sys-apps/systemd-sysv-utils |
107 |
) |
108 |
>=sys-apps/util-linux-2.21 |
109 |
|
110 |
debug? ( dev-util/strace ) |
111 |
selinux? ( |
112 |
sys-libs/libselinux |
113 |
sys-libs/libsepol |
114 |
sec-policy/selinux-dracut |
115 |
) |
116 |
" |
117 |
DEPEND="${CDEPEND} |
118 |
app-text/asciidoc |
119 |
>=dev-libs/libxslt-1.1.26 |
120 |
app-text/docbook-xml-dtd:4.5 |
121 |
>=app-text/docbook-xsl-stylesheets-1.75.2 |
122 |
virtual/pkgconfig |
123 |
" |
124 |
|
125 |
DOCS=( AUTHORS HACKING NEWS README README.generic README.kernel README.modules |
126 |
README.testsuite TODO ) |
127 |
MY_LIBDIR=/usr/lib |
128 |
QA_MULTILIB_PATHS=" |
129 |
usr/lib/dracut/dracut-install |
130 |
usr/lib/dracut/skipcpio |
131 |
" |
132 |
|
133 |
# |
134 |
# Helper functions |
135 |
# |
136 |
|
137 |
# Removes module from modules.d. |
138 |
# $1 = module name |
139 |
# Module name can be specified without number prefix. |
140 |
rm_module() { |
141 |
local force m |
142 |
[[ $1 = -f ]] && force=-f |
143 |
|
144 |
for m in $@; do |
145 |
if [[ $m =~ ^[0-9][0-9][^\ ]*$ ]]; then |
146 |
rm ${force} --interactive=never -r "${modules_dir}"/$m |
147 |
else |
148 |
rm ${force} --interactive=never -r "${modules_dir}"/[0-9][0-9]$m |
149 |
fi |
150 |
done |
151 |
} |
152 |
|
153 |
# Grabbed from net-misc/netctl ebuild. |
154 |
optfeature() { |
155 |
local desc=$1 |
156 |
shift |
157 |
while (( $# )); do |
158 |
if has_version "$1"; then |
159 |
elog " [I] $1 to ${desc}" |
160 |
else |
161 |
elog " [ ] $1 to ${desc}" |
162 |
fi |
163 |
shift |
164 |
done |
165 |
} |
166 |
|
167 |
# |
168 |
# ebuild functions |
169 |
# |
170 |
|
171 |
src_prepare() { |
172 |
local libdirs="/$(get_libdir) /usr/$(get_libdir)" |
173 |
if [[ ${SYMLINK_LIB} = yes ]]; then |
174 |
# Preserve lib -> lib64 symlinks in initramfs |
175 |
[[ $libdirs =~ /lib\ ]] || libdirs+=" /lib /usr/lib" |
176 |
fi |
177 |
einfo "Setting libdirs to \"${libdirs}\" ..." |
178 |
sed -e "3alibdirs=\"${libdirs}\"" \ |
179 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
180 |
|
181 |
local udevdir="$("$(tc-getPKG_CONFIG)" udev --variable=udevdir)" |
182 |
einfo "Setting udevdir to ${udevdir}..." |
183 |
sed -r -e "s|^(udevdir=).*$|\1${udevdir}|" \ |
184 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
185 |
|
186 |
if use systemd; then |
187 |
local systemdutildir="$(systemd_get_utildir)" |
188 |
local systemdsystemunitdir="$(systemd_get_unitdir)" |
189 |
local systemdsystemconfdir="$("$(tc-getPKG_CONFIG)" systemd \ |
190 |
--variable=systemdsystemconfdir)" |
191 |
[[ ${systemdsystemconfdir} ]] \ |
192 |
|| systemdsystemconfdir=/etc/systemd/system |
193 |
einfo "Setting systemdutildir to ${systemdutildir} and ..." |
194 |
sed -e "5asystemdutildir=\"${systemdutildir}\"" \ |
195 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
196 |
einfo "Setting systemdsystemunitdir to ${systemdsystemunitdir} and..." |
197 |
sed -e "6asystemdsystemunitdir=\"${systemdsystemunitdir}\"" \ |
198 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
199 |
einfo "Setting systemdsystemconfdir to ${systemdsystemconfdir}..." |
200 |
sed -e "7asystemdsystemconfdir=\"${systemdsystemconfdir}\"" \ |
201 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
202 |
else |
203 |
local systemdutildir="/lib/systemd" |
204 |
einfo "Setting systemdutildir for standalone udev to" \ |
205 |
"${systemdutildir}..." |
206 |
sed -e "5asystemdutildir=\"${systemdutildir}\"" \ |
207 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
208 |
fi |
209 |
|
210 |
epatch_user |
211 |
} |
212 |
|
213 |
src_configure() { |
214 |
local myconf="--libdir=${MY_LIBDIR}" |
215 |
myconf+=" --bashcompletiondir=$(get_bashcompdir)" |
216 |
|
217 |
if use systemd; then |
218 |
myconf+=" --systemdsystemunitdir='$(systemd_get_unitdir)'" |
219 |
fi |
220 |
|
221 |
econf ${myconf} |
222 |
} |
223 |
|
224 |
src_compile() { |
225 |
tc-export CC |
226 |
emake doc install/dracut-install skipcpio/skipcpio |
227 |
} |
228 |
|
229 |
src_install() { |
230 |
default |
231 |
|
232 |
local my_libdir="${MY_LIBDIR}" |
233 |
local dracutlibdir="${my_libdir#/}/dracut" |
234 |
|
235 |
echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh" |
236 |
|
237 |
insinto "${dracutlibdir}/dracut.conf.d/" |
238 |
newins dracut.conf.d/gentoo.conf.example gentoo.conf |
239 |
|
240 |
insinto /etc/logrotate.d |
241 |
newins dracut.logrotate dracut |
242 |
|
243 |
dodir /var/lib/dracut/overlay |
244 |
|
245 |
dohtml dracut.html |
246 |
|
247 |
if ! use systemd; then |
248 |
# Scripts in kernel/install.d are systemd-specific |
249 |
rm -r "${D%/}/${my_libdir}/kernel" || die |
250 |
fi |
251 |
|
252 |
# |
253 |
# Modules |
254 |
# |
255 |
local module |
256 |
modules_dir="${D%/}/${dracutlibdir}/modules.d" |
257 |
|
258 |
use debug || rm_module 95debug |
259 |
use selinux || rm_module 98selinux |
260 |
|
261 |
if use systemd; then |
262 |
# With systemd following modules do not make sense |
263 |
rm_module 96securityfs 97masterkey 98integrity |
264 |
else |
265 |
rm_module 00systemd 98dracut-systemd |
266 |
# Without systemd following modules do not make sense |
267 |
rm_module 00systemd-bootchart 01systemd-initrd 02systemd-networkd |
268 |
fi |
269 |
|
270 |
# Remove modules which won't work for sure |
271 |
rm_module 95fcoe # no tools |
272 |
# fips module depends on masked app-crypt/hmaccalc |
273 |
rm_module 01fips 02fips-aesni |
274 |
} |
275 |
|
276 |
pkg_postinst() { |
277 |
if linux-info_get_any_version && linux_config_src_exists; then |
278 |
ewarn "" |
279 |
ewarn "If the following test report contains a missing kernel" |
280 |
ewarn "configuration option, you should reconfigure and rebuild your" |
281 |
ewarn "kernel before booting image generated with this Dracut version." |
282 |
ewarn "" |
283 |
|
284 |
local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" |
285 |
|
286 |
# Kernel configuration options descriptions: |
287 |
local desc_DEVTMPFS="Maintain a devtmpfs filesystem to mount at /dev" |
288 |
local desc_BLK_DEV_INITRD="Initial RAM filesystem and RAM disk "\ |
289 |
"(initramfs/initrd) support" |
290 |
|
291 |
local opt desc |
292 |
|
293 |
# Generate ERROR_* variables for check_extra_config. |
294 |
for opt in ${CONFIG_CHECK}; do |
295 |
opt=${opt#\~} |
296 |
desc=desc_${opt} |
297 |
eval "local ERROR_${opt}='CONFIG_${opt}: \"${!desc}\"" \ |
298 |
"is missing and REQUIRED'" |
299 |
done |
300 |
|
301 |
check_extra_config |
302 |
echo |
303 |
else |
304 |
ewarn "" |
305 |
ewarn "Your kernel configuration couldn't be checked. Do you have" |
306 |
ewarn "/usr/src/linux/.config file there? Please check manually if" |
307 |
ewarn "following options are enabled:" |
308 |
ewarn "" |
309 |
ewarn " CONFIG_BLK_DEV_INITRD" |
310 |
ewarn " CONFIG_DEVTMPFS" |
311 |
ewarn "" |
312 |
fi |
313 |
|
314 |
elog "To get additional features, a number of optional runtime" |
315 |
elog "dependencies may be installed:" |
316 |
elog "" |
317 |
optfeature "Networking support" net-misc/curl "net-misc/dhcp[client]" \ |
318 |
sys-apps/iproute2 |
319 |
optfeature \ |
320 |
"Measure performance of the boot process for later visualisation" \ |
321 |
app-benchmarks/bootchart2 app-admin/killproc sys-process/acct |
322 |
optfeature "Scan for Btrfs on block devices" sys-fs/btrfs-progs |
323 |
optfeature "Load kernel modules and drop this privilege for real init" \ |
324 |
sys-libs/libcap |
325 |
optfeature "Support CIFS" net-fs/cifs-utils |
326 |
optfeature "Decrypt devices encrypted with cryptsetup/LUKS" \ |
327 |
"sys-fs/cryptsetup[-static-libs]" |
328 |
optfeature "Support for GPG-encrypted keys for crypt module" \ |
329 |
app-crypt/gnupg |
330 |
optfeature \ |
331 |
"Allows use of dash instead of default bash (on your own risk)" \ |
332 |
app-shells/dash |
333 |
optfeature "Framebuffer splash (media-gfx/splashutils)" \ |
334 |
media-gfx/splashutils |
335 |
optfeature "Support iSCSI" sys-block/open-iscsi |
336 |
optfeature "Support Logical Volume Manager" sys-fs/lvm2 |
337 |
optfeature "Support MD devices, also known as software RAID devices" \ |
338 |
sys-fs/mdadm |
339 |
optfeature "Support Device Mapper multipathing" sys-fs/multipath-tools |
340 |
optfeature "Plymouth boot splash" '>=sys-boot/plymouth-0.8.5-r5' |
341 |
optfeature "Support network block devices" sys-block/nbd |
342 |
optfeature "Support NFS" net-fs/nfs-utils net-nds/rpcbind |
343 |
optfeature \ |
344 |
"Install ssh and scp along with config files and specified keys" \ |
345 |
net-misc/openssh |
346 |
optfeature "Enable logging with syslog-ng or rsyslog" app-admin/syslog-ng \ |
347 |
app-admin/rsyslog |
348 |
} |