How to add cryptsetup to DracutRunning dracut on AWS EBS Centos 7 prevents bootingDracut not finding root...
What do you call the angle of the direction of an airplane?
Is it bad to suddenly introduce another element to your fantasy world a good ways into the story?
Should I increase my 401k contributions, or increase my mortgage payments
What can a novel do that film and TV cannot?
What is the difference between a historical drama and a period drama?
Why do Klingons use cloaking devices?
Isn't "Dave's protocol" good if only the database, and not the code, is leaked?
How frequently do Russian people still refer to others by their patronymic (отчество)?
Show that there are infinitely more problems than we will ever be able to compute
Machine Learning Golf: Multiplication
Was Wolfgang Unzicker the last Amateur GM?
Park the computer
How did Einstein know the speed of light was constant?
Taking advantage when the HR forgets to communicate the rules
What is meaning of 4 letter abbreviations in Roman names like Titus Flavius T. f. T. n. Sabinus?
Minimizing medical costs with HSA
How come having a Deathly Hallow is not a big deal?
What is the maximum amount of diamond in one Minecraft game?
What's the big deal about the Nazgûl losing their horses?
How to travel between two stationary worlds in the least amount of time? (time dilation)
Do intermediate subdomains need to exist?
Does Evolution Sage proliferate Blast Zone when played?
Is there a typical layout to blocking installed for backing in new construction framing?
How to deal with administrative duties killing the research spirit?
How to add cryptsetup to Dracut
Running dracut on AWS EBS Centos 7 prevents bootingDracut not finding root deviceamazon aws : dracut mount filesystems in random order?How can I execute tpm2_nvread in the initramfs image created by dracut for centOS 7?How do I change dracut-initqueue timeout?Migrate from Initramfs-tools to DracutMageia 5.1 dracut errorUnable to re-create initramfs using dracutSystem boots into Dracut mode in CentOS 7
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I'm switching to Dracut and I've numerous problems. In order to eliminate them one by one, first I want my system to boot correctly. So my Grub2 entry looks like this:
menuentry 'dracut' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 829c0201-9b6d-4e18-8464-9d2551311ea6
else
search --no-floppy --fs-uuid --set=root 829c0201-9b6d-4e18-8464-9d2551311ea6
fi
echo 'Loading Linux 4.9.0-2-amd64 ...'
linux /vmlinuz-4.9.0-2-amd64 rd.shell rd.debug log_buf_len=1M
echo 'Loading dracut initial ramdisk ...'
initrd /initramfs-4.9.0-2-amd64.img
}
I expect to be dropped into the rescue shell and then manually assemble the root file system, and continue booting; but there is no cryptsetup binary in the rescue shell.
Dracut configuration file /etc/dracut.conf.d/* looks like this:
do_prelink=no
add_dracutmodule+="cryptsetup"
Relevant list of modules are as follows:
# dracut --list-modules | grep crypt
dracut: Executing: /usr/bin/dracut --list-modules
crypt
crypt-gpg
crypt-loop
ecryptfs
How can I add cryptsetup so I could manually unlock the encrypted partition manually (via rescue shell)?
dracut rescuemode
add a comment |
I'm switching to Dracut and I've numerous problems. In order to eliminate them one by one, first I want my system to boot correctly. So my Grub2 entry looks like this:
menuentry 'dracut' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 829c0201-9b6d-4e18-8464-9d2551311ea6
else
search --no-floppy --fs-uuid --set=root 829c0201-9b6d-4e18-8464-9d2551311ea6
fi
echo 'Loading Linux 4.9.0-2-amd64 ...'
linux /vmlinuz-4.9.0-2-amd64 rd.shell rd.debug log_buf_len=1M
echo 'Loading dracut initial ramdisk ...'
initrd /initramfs-4.9.0-2-amd64.img
}
I expect to be dropped into the rescue shell and then manually assemble the root file system, and continue booting; but there is no cryptsetup binary in the rescue shell.
Dracut configuration file /etc/dracut.conf.d/* looks like this:
do_prelink=no
add_dracutmodule+="cryptsetup"
Relevant list of modules are as follows:
# dracut --list-modules | grep crypt
dracut: Executing: /usr/bin/dracut --list-modules
crypt
crypt-gpg
crypt-loop
ecryptfs
How can I add cryptsetup so I could manually unlock the encrypted partition manually (via rescue shell)?
dracut rescuemode
add a comment |
I'm switching to Dracut and I've numerous problems. In order to eliminate them one by one, first I want my system to boot correctly. So my Grub2 entry looks like this:
menuentry 'dracut' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 829c0201-9b6d-4e18-8464-9d2551311ea6
else
search --no-floppy --fs-uuid --set=root 829c0201-9b6d-4e18-8464-9d2551311ea6
fi
echo 'Loading Linux 4.9.0-2-amd64 ...'
linux /vmlinuz-4.9.0-2-amd64 rd.shell rd.debug log_buf_len=1M
echo 'Loading dracut initial ramdisk ...'
initrd /initramfs-4.9.0-2-amd64.img
}
I expect to be dropped into the rescue shell and then manually assemble the root file system, and continue booting; but there is no cryptsetup binary in the rescue shell.
Dracut configuration file /etc/dracut.conf.d/* looks like this:
do_prelink=no
add_dracutmodule+="cryptsetup"
Relevant list of modules are as follows:
# dracut --list-modules | grep crypt
dracut: Executing: /usr/bin/dracut --list-modules
crypt
crypt-gpg
crypt-loop
ecryptfs
How can I add cryptsetup so I could manually unlock the encrypted partition manually (via rescue shell)?
dracut rescuemode
I'm switching to Dracut and I've numerous problems. In order to eliminate them one by one, first I want my system to boot correctly. So my Grub2 entry looks like this:
menuentry 'dracut' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 829c0201-9b6d-4e18-8464-9d2551311ea6
else
search --no-floppy --fs-uuid --set=root 829c0201-9b6d-4e18-8464-9d2551311ea6
fi
echo 'Loading Linux 4.9.0-2-amd64 ...'
linux /vmlinuz-4.9.0-2-amd64 rd.shell rd.debug log_buf_len=1M
echo 'Loading dracut initial ramdisk ...'
initrd /initramfs-4.9.0-2-amd64.img
}
I expect to be dropped into the rescue shell and then manually assemble the root file system, and continue booting; but there is no cryptsetup binary in the rescue shell.
Dracut configuration file /etc/dracut.conf.d/* looks like this:
do_prelink=no
add_dracutmodule+="cryptsetup"
Relevant list of modules are as follows:
# dracut --list-modules | grep crypt
dracut: Executing: /usr/bin/dracut --list-modules
crypt
crypt-gpg
crypt-loop
ecryptfs
How can I add cryptsetup so I could manually unlock the encrypted partition manually (via rescue shell)?
dracut rescuemode
dracut rescuemode
asked Aug 6 '17 at 13:21
ceremcemceremcem
5841 gold badge6 silver badges24 bronze badges
5841 gold badge6 silver badges24 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
as of debian dracut-core 044+243-3, /usr/lib/dracut/modules.d/90crypt/module-setup.sh:
require_any_binary $systemdutildir/systemd-cryptsetup cryptsetup || return 1
so dracut first tries to include /lib/systemd/systemd-cryptsetup, if the first not exist then include /sbin/cryptsetup, if neither then fail.
these are each provided by cryptsetup-bin 2:2.1.0-5 and systemd 241-1, respectively.
the usage of /lib/systemd/systemd-cryptsetup is not very same as /sbin/cryptsetup. indeed, it has less functionality:
systemd-cryptsetup attach VOLUME SOURCEDEVICE [PASSWORD] [OPTIONS]
systemd-cryptsetup detach VOLUME
Attaches or detaches an encrypted block device.
See the systemd-cryptsetup@.service(8) man page for details.
so we may want include /sbin/cryptsetup by
dracut --install "/sbin/cryptsetup" /bin/initrd.1 4.19.0-5-amd64
or in /etc/dracut.conf.d/XXX
install_items+="/sbin/cryptsetup"
finally, verify the inclusion (maybe with |grep cryptsetup):
lsinitrd /boot/initrd.1
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f384296%2fhow-to-add-cryptsetup-to-dracut%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
as of debian dracut-core 044+243-3, /usr/lib/dracut/modules.d/90crypt/module-setup.sh:
require_any_binary $systemdutildir/systemd-cryptsetup cryptsetup || return 1
so dracut first tries to include /lib/systemd/systemd-cryptsetup, if the first not exist then include /sbin/cryptsetup, if neither then fail.
these are each provided by cryptsetup-bin 2:2.1.0-5 and systemd 241-1, respectively.
the usage of /lib/systemd/systemd-cryptsetup is not very same as /sbin/cryptsetup. indeed, it has less functionality:
systemd-cryptsetup attach VOLUME SOURCEDEVICE [PASSWORD] [OPTIONS]
systemd-cryptsetup detach VOLUME
Attaches or detaches an encrypted block device.
See the systemd-cryptsetup@.service(8) man page for details.
so we may want include /sbin/cryptsetup by
dracut --install "/sbin/cryptsetup" /bin/initrd.1 4.19.0-5-amd64
or in /etc/dracut.conf.d/XXX
install_items+="/sbin/cryptsetup"
finally, verify the inclusion (maybe with |grep cryptsetup):
lsinitrd /boot/initrd.1
add a comment |
as of debian dracut-core 044+243-3, /usr/lib/dracut/modules.d/90crypt/module-setup.sh:
require_any_binary $systemdutildir/systemd-cryptsetup cryptsetup || return 1
so dracut first tries to include /lib/systemd/systemd-cryptsetup, if the first not exist then include /sbin/cryptsetup, if neither then fail.
these are each provided by cryptsetup-bin 2:2.1.0-5 and systemd 241-1, respectively.
the usage of /lib/systemd/systemd-cryptsetup is not very same as /sbin/cryptsetup. indeed, it has less functionality:
systemd-cryptsetup attach VOLUME SOURCEDEVICE [PASSWORD] [OPTIONS]
systemd-cryptsetup detach VOLUME
Attaches or detaches an encrypted block device.
See the systemd-cryptsetup@.service(8) man page for details.
so we may want include /sbin/cryptsetup by
dracut --install "/sbin/cryptsetup" /bin/initrd.1 4.19.0-5-amd64
or in /etc/dracut.conf.d/XXX
install_items+="/sbin/cryptsetup"
finally, verify the inclusion (maybe with |grep cryptsetup):
lsinitrd /boot/initrd.1
add a comment |
as of debian dracut-core 044+243-3, /usr/lib/dracut/modules.d/90crypt/module-setup.sh:
require_any_binary $systemdutildir/systemd-cryptsetup cryptsetup || return 1
so dracut first tries to include /lib/systemd/systemd-cryptsetup, if the first not exist then include /sbin/cryptsetup, if neither then fail.
these are each provided by cryptsetup-bin 2:2.1.0-5 and systemd 241-1, respectively.
the usage of /lib/systemd/systemd-cryptsetup is not very same as /sbin/cryptsetup. indeed, it has less functionality:
systemd-cryptsetup attach VOLUME SOURCEDEVICE [PASSWORD] [OPTIONS]
systemd-cryptsetup detach VOLUME
Attaches or detaches an encrypted block device.
See the systemd-cryptsetup@.service(8) man page for details.
so we may want include /sbin/cryptsetup by
dracut --install "/sbin/cryptsetup" /bin/initrd.1 4.19.0-5-amd64
or in /etc/dracut.conf.d/XXX
install_items+="/sbin/cryptsetup"
finally, verify the inclusion (maybe with |grep cryptsetup):
lsinitrd /boot/initrd.1
as of debian dracut-core 044+243-3, /usr/lib/dracut/modules.d/90crypt/module-setup.sh:
require_any_binary $systemdutildir/systemd-cryptsetup cryptsetup || return 1
so dracut first tries to include /lib/systemd/systemd-cryptsetup, if the first not exist then include /sbin/cryptsetup, if neither then fail.
these are each provided by cryptsetup-bin 2:2.1.0-5 and systemd 241-1, respectively.
the usage of /lib/systemd/systemd-cryptsetup is not very same as /sbin/cryptsetup. indeed, it has less functionality:
systemd-cryptsetup attach VOLUME SOURCEDEVICE [PASSWORD] [OPTIONS]
systemd-cryptsetup detach VOLUME
Attaches or detaches an encrypted block device.
See the systemd-cryptsetup@.service(8) man page for details.
so we may want include /sbin/cryptsetup by
dracut --install "/sbin/cryptsetup" /bin/initrd.1 4.19.0-5-amd64
or in /etc/dracut.conf.d/XXX
install_items+="/sbin/cryptsetup"
finally, verify the inclusion (maybe with |grep cryptsetup):
lsinitrd /boot/initrd.1
edited 10 mins ago
answered 15 mins ago
把友情留在无盐把友情留在无盐
5503 silver badges10 bronze badges
5503 silver badges10 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f384296%2fhow-to-add-cryptsetup-to-dracut%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown