Changing hostname (with hostnamectl) in chroot environment does not work (Iso customization) Ask











up vote
0
down vote

favorite












I can not change the hostname in the chroot environment (Ubuntu) I tried hostnamectl set-hostname but it says:



Failed to create bus connection: Couldnt find file or folder



Then I tried changing it with hostname and edited the /etc/hostname file and put my name in it. Thought it worked but when I burned the finished remastered .iso on a stick and bootet from it, it didnt work.



Somebody know a solution?










share|improve this question







New contributor




kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • What method are you using to remaster the iso?
    – Katu
    Nov 15 at 9:48










  • Hey, I used this method gtkdb.de/index_34_1259.html and it all worked. I just cant change the hostname permanently it seems or I am doing something wrong
    – kcdk
    Nov 15 at 9:53















up vote
0
down vote

favorite












I can not change the hostname in the chroot environment (Ubuntu) I tried hostnamectl set-hostname but it says:



Failed to create bus connection: Couldnt find file or folder



Then I tried changing it with hostname and edited the /etc/hostname file and put my name in it. Thought it worked but when I burned the finished remastered .iso on a stick and bootet from it, it didnt work.



Somebody know a solution?










share|improve this question







New contributor




kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • What method are you using to remaster the iso?
    – Katu
    Nov 15 at 9:48










  • Hey, I used this method gtkdb.de/index_34_1259.html and it all worked. I just cant change the hostname permanently it seems or I am doing something wrong
    – kcdk
    Nov 15 at 9:53













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I can not change the hostname in the chroot environment (Ubuntu) I tried hostnamectl set-hostname but it says:



Failed to create bus connection: Couldnt find file or folder



Then I tried changing it with hostname and edited the /etc/hostname file and put my name in it. Thought it worked but when I burned the finished remastered .iso on a stick and bootet from it, it didnt work.



Somebody know a solution?










share|improve this question







New contributor




kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I can not change the hostname in the chroot environment (Ubuntu) I tried hostnamectl set-hostname but it says:



Failed to create bus connection: Couldnt find file or folder



Then I tried changing it with hostname and edited the /etc/hostname file and put my name in it. Thought it worked but when I burned the finished remastered .iso on a stick and bootet from it, it didnt work.



Somebody know a solution?







chroot hostname






share|improve this question







New contributor




kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 15 at 9:45









kcdk

11




11




New contributor




kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






kcdk is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • What method are you using to remaster the iso?
    – Katu
    Nov 15 at 9:48










  • Hey, I used this method gtkdb.de/index_34_1259.html and it all worked. I just cant change the hostname permanently it seems or I am doing something wrong
    – kcdk
    Nov 15 at 9:53


















  • What method are you using to remaster the iso?
    – Katu
    Nov 15 at 9:48










  • Hey, I used this method gtkdb.de/index_34_1259.html and it all worked. I just cant change the hostname permanently it seems or I am doing something wrong
    – kcdk
    Nov 15 at 9:53
















What method are you using to remaster the iso?
– Katu
Nov 15 at 9:48




What method are you using to remaster the iso?
– Katu
Nov 15 at 9:48












Hey, I used this method gtkdb.de/index_34_1259.html and it all worked. I just cant change the hostname permanently it seems or I am doing something wrong
– kcdk
Nov 15 at 9:53




Hey, I used this method gtkdb.de/index_34_1259.html and it all worked. I just cant change the hostname permanently it seems or I am doing something wrong
– kcdk
Nov 15 at 9:53















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});


}
});






kcdk is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093130%2fchanging-hostname-with-hostnamectl-in-chroot-environment-does-not-work-iso-cu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








kcdk is a new contributor. Be nice, and check out our Code of Conduct.










 

draft saved


draft discarded


















kcdk is a new contributor. Be nice, and check out our Code of Conduct.













kcdk is a new contributor. Be nice, and check out our Code of Conduct.












kcdk is a new contributor. Be nice, and check out our Code of Conduct.















 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093130%2fchanging-hostname-with-hostnamectl-in-chroot-environment-does-not-work-iso-cu%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Ellipse (mathématiques)

Quarter-circle Tiles

Mont Emei