Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 253446
Collapse All | Expand All

(-)gen_initramfs.sh.backup (-7 / +7 lines)
Lines 285-306 Link Here
285
	then
285
	then
286
		rm -r "${TEMP}/initramfs-luks-temp/"
286
		rm -r "${TEMP}/initramfs-luks-temp/"
287
	fi
287
	fi
288
	mkdir -p "${TEMP}/initramfs-luks-temp/lib/luks"
288
	mkdir -p "${TEMP}/initramfs-luks-temp/sbin"
289
	cd "${TEMP}/initramfs-luks-temp"
289
	cd "${TEMP}/initramfs-luks-temp"
290
	if isTrue ${LUKS}
290
	if isTrue ${LUKS}
291
	then
291
	then
292
		if is_static /bin/cryptsetup
292
		if is_static /bin/cryptsetup
293
		then
293
		then
294
			print_info 1 "Including LUKS support"
294
			print_info 1 "Including LUKS support"
295
			rm -f ${TEMP}/initramfs-aux-temp/sbin/cryptsetup
295
			rm -f ${TEMP}/initramfs-luks-temp/sbin/cryptsetup
296
			cp /bin/cryptsetup ${TEMP}/initramfs-aux-temp/sbin/cryptsetup
296
			cp /bin/cryptsetup ${TEMP}/initramfs-luks-temp/sbin/cryptsetup
297
			chmod +x "${TEMP}/initramfs-aux-temp/sbin/cryptsetup"
297
			chmod +x "${TEMP}/initramfs-luks-temp/sbin/cryptsetup"
298
		elif is_static /sbin/cryptsetup
298
		elif is_static /sbin/cryptsetup
299
		then
299
		then
300
			print_info 1 "Including LUKS support"
300
			print_info 1 "Including LUKS support"
301
			rm -f ${TEMP}/initramfs-aux-temp/sbin/cryptsetup
301
			rm -f ${TEMP}/initramfs-luks-temp/sbin/cryptsetup
302
			cp /sbin/cryptsetup ${TEMP}/initramfs-aux-temp/sbin/cryptsetup
302
			cp /sbin/cryptsetup ${TEMP}/initramfs-luks-temp/sbin/cryptsetup
303
		chmod +x "${TEMP}/initramfs-aux-temp/sbin/cryptsetup"
303
		chmod +x "${TEMP}/initramfs-luks-temp/sbin/cryptsetup"
304
304
305
		else
305
		else
306
			print_info 1 "LUKS support requires static cryptsetup at /bin/cryptsetup or /sbin/cryptsetup"
306
			print_info 1 "LUKS support requires static cryptsetup at /bin/cryptsetup or /sbin/cryptsetup"

Return to bug 253446