Lines 86-96
Link Here
|
86 |
# ebuild functions |
86 |
# ebuild functions |
87 |
# |
87 |
# |
88 |
|
88 |
|
|
|
89 |
pkg_pretend() { |
90 |
local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" |
91 |
check_extra_config |
92 |
} |
93 |
|
89 |
src_prepare() { |
94 |
src_prepare() { |
90 |
epatch "${PATCHES[@]}" |
95 |
epatch "${PATCHES[@]}" |
91 |
|
96 |
|
92 |
local libdirs="/$(get_libdir) /usr/$(get_libdir)" |
97 |
local libdirs="/$(get_libdir) /usr/$(get_libdir)" |
93 |
[[ $libdirs =~ /lib\ ]] || libdirs+=" /lib /usr/lib" |
98 |
if [ "${SYMLINK_LIB}" = "yes" ] ; then |
|
|
99 |
# Preserve lib -> lib64 synlinks in initramfs |
100 |
[[ $libdirs =~ /lib\ ]] || libdirs+=" /lib /usr/lib" |
101 |
fi |
94 |
einfo "Setting libdirs to \"${libdirs}\" ..." |
102 |
einfo "Setting libdirs to \"${libdirs}\" ..." |
95 |
sed -e "3alibdirs=\"${libdirs}\"" \ |
103 |
sed -e "3alibdirs=\"${libdirs}\"" \ |
96 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
104 |
-i "${S}/dracut.conf.d/gentoo.conf.example" || die |
Lines 186-228
Link Here
|
186 |
} |
194 |
} |
187 |
|
195 |
|
188 |
pkg_postinst() { |
196 |
pkg_postinst() { |
189 |
if linux-info_get_any_version && linux_config_src_exists; then |
|
|
190 |
ewarn "" |
191 |
ewarn "If the following test report contains a missing kernel" |
192 |
ewarn "configuration option, you should reconfigure and rebuild your" |
193 |
ewarn "kernel before booting image generated with this Dracut version." |
194 |
ewarn "" |
195 |
|
196 |
local CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS" |
197 |
|
198 |
# Kernel configuration options descriptions: |
199 |
local desc_DEVTMPFS="Maintain a devtmpfs filesystem to mount at /dev" |
200 |
local desc_BLK_DEV_INITRD="Initial RAM filesystem and RAM disk "\ |
201 |
"(initramfs/initrd) support" |
202 |
|
203 |
local opt desc |
204 |
|
205 |
# Generate ERROR_* variables for check_extra_config. |
206 |
for opt in ${CONFIG_CHECK}; do |
207 |
opt=${opt#\~} |
208 |
desc=desc_${opt} |
209 |
eval "local ERROR_${opt}='CONFIG_${opt}: \"${!desc}\"" \ |
210 |
"is missing and REQUIRED'" |
211 |
done |
212 |
|
213 |
check_extra_config |
214 |
echo |
215 |
else |
216 |
ewarn "" |
217 |
ewarn "Your kernel configuration couldn't be checked. Do you have" |
218 |
ewarn "/usr/src/linux/.config file there? Please check manually if" |
219 |
ewarn "following options are enabled:" |
220 |
ewarn "" |
221 |
ewarn " CONFIG_BLK_DEV_INITRD" |
222 |
ewarn " CONFIG_DEVTMPFS" |
223 |
ewarn "" |
224 |
fi |
225 |
|
226 |
elog "To get additional features, a number of optional runtime" |
197 |
elog "To get additional features, a number of optional runtime" |
227 |
elog "dependencies may be installed:" |
198 |
elog "dependencies may be installed:" |
228 |
elog "" |
199 |
elog "" |