Eject live CD on reboot/shutdownEject CD on shutdownEject USB drives / eject commandEject CD on...
Lípínguapua dopo Pêpê
Decipher case notes extract
An array battle with odd secret powers
Would the USA be eligible to join the European Union?
Why does the cable resistance jump from a low value to high value at a particular frequency?
What is a "soap"?
Dogfights in outer space
How to use Smarty for change greetings for French?
In which case does the Security misconfiguration vulnerability apply to?
(A room / an office) where an artist works
Identifying My Main Water Shutoff Valve / Setup
Why is the result of ('b'+'a'+ + 'a' + 'a').toLowerCase() 'banana'?
Does EU compensation apply to flights where the departure airport closes check-in counters during protests?
What would it take to get a message to another star?
Are there really no countries that protect Freedom of Speech as the United States does?
Does an Irish VISA WARNING count as "refused entry at the border of any country other than the UK?"
Global BGP Routing only by only importing supernet prefixes
Why command hierarchy, if the chain of command is standing next to each other?
How would you translate this? バタコチーズライス
Stephen King and steam/diesel/cyber-punk
What kind of liquid can be seen 'leaking' from the upper surface of the wing of a Boeing 737-800?
A trip to the library
Why is Python 2.7 still the default Python version in Ubuntu?
Change page title from Views preprocess function
Eject live CD on reboot/shutdown
Eject CD on shutdownEject USB drives / eject commandEject CD on shutdownDisable reboot/shutdown/suspend/etc from GUIInitiate bash script on shutdown, but not on rebootUnderstanding the output of last reboot shutdown“shutdown -r” works but “reboot” does notShutdown and reboot hangSystem freeze on reboot/shutdown
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
This problem has been posted before but didn't seem fully resolved (link: Eject CD on shutdown). So the problem is booting off of live CD then I want to eject the CD on reboot or shutdown. I have tried the following methods:
1) write dracut shutdown hook script; so the contents of /run/initramfs/usr/lib/dracut/hooks/shutdown/99eject.sh would be something like
#!/bin/bash
eject /dev/sr0
Tried shutting down with dracut and bash debug flags but doesn't seem like this script runs. Did systemctl daemon-reload after writing script, and made sure script was executable.
2) messed with writing a dracut module, using inst_hook pre-shutdown 50 $moddir/custom-pre-shutdown.sh
in the module-setup.sh part. But couldn't really figure this out; also shutdown messages say eject is not a command.
Any advice on how to solve this would be greatly appreciated!
kernel-modules shutdown livecd dracut eject
add a comment |
This problem has been posted before but didn't seem fully resolved (link: Eject CD on shutdown). So the problem is booting off of live CD then I want to eject the CD on reboot or shutdown. I have tried the following methods:
1) write dracut shutdown hook script; so the contents of /run/initramfs/usr/lib/dracut/hooks/shutdown/99eject.sh would be something like
#!/bin/bash
eject /dev/sr0
Tried shutting down with dracut and bash debug flags but doesn't seem like this script runs. Did systemctl daemon-reload after writing script, and made sure script was executable.
2) messed with writing a dracut module, using inst_hook pre-shutdown 50 $moddir/custom-pre-shutdown.sh
in the module-setup.sh part. But couldn't really figure this out; also shutdown messages say eject is not a command.
Any advice on how to solve this would be greatly appreciated!
kernel-modules shutdown livecd dracut eject
add a comment |
This problem has been posted before but didn't seem fully resolved (link: Eject CD on shutdown). So the problem is booting off of live CD then I want to eject the CD on reboot or shutdown. I have tried the following methods:
1) write dracut shutdown hook script; so the contents of /run/initramfs/usr/lib/dracut/hooks/shutdown/99eject.sh would be something like
#!/bin/bash
eject /dev/sr0
Tried shutting down with dracut and bash debug flags but doesn't seem like this script runs. Did systemctl daemon-reload after writing script, and made sure script was executable.
2) messed with writing a dracut module, using inst_hook pre-shutdown 50 $moddir/custom-pre-shutdown.sh
in the module-setup.sh part. But couldn't really figure this out; also shutdown messages say eject is not a command.
Any advice on how to solve this would be greatly appreciated!
kernel-modules shutdown livecd dracut eject
This problem has been posted before but didn't seem fully resolved (link: Eject CD on shutdown). So the problem is booting off of live CD then I want to eject the CD on reboot or shutdown. I have tried the following methods:
1) write dracut shutdown hook script; so the contents of /run/initramfs/usr/lib/dracut/hooks/shutdown/99eject.sh would be something like
#!/bin/bash
eject /dev/sr0
Tried shutting down with dracut and bash debug flags but doesn't seem like this script runs. Did systemctl daemon-reload after writing script, and made sure script was executable.
2) messed with writing a dracut module, using inst_hook pre-shutdown 50 $moddir/custom-pre-shutdown.sh
in the module-setup.sh part. But couldn't really figure this out; also shutdown messages say eject is not a command.
Any advice on how to solve this would be greatly appreciated!
kernel-modules shutdown livecd dracut eject
kernel-modules shutdown livecd dracut eject
asked 16 hours ago
awesome_penguinsawesome_penguins
1
1
add a comment |
add a comment |
0
active
oldest
votes
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%2f535473%2feject-live-cd-on-reboot-shutdown%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f535473%2feject-live-cd-on-reboot-shutdown%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