Hello,
is it possible to populate the "Liveuser" home directory during creation of live image with livecd-creator?
I know that you can do it with livecd-iso-to-disk, but I would like to do it in the kickstart. When I try to put something in /home/liveuser, it still does not exist during creation process.
Where can I find this directory which will become the home?
Or is it enough to put those things into /etc/skel and they will be placed where appropriate automatically?
Thank you,
Vojta
Vojta
On Sun, Sep 6, 2020 at 5:13 AM Vojtěch Polášek krecoun@gmail.com wrote:
Hello,
is it possible to populate the "Liveuser" home directory during creation of live image with livecd-creator?
I know that you can do it with livecd-iso-to-disk, but I would like to do it in the kickstart. When I try to put something in /home/liveuser, it still does not exist during creation process.
Where can I find this directory which will become the home?
Or is it enough to put those things into /etc/skel and they will be placed where appropriate automatically?
Normally, liveuser is created on live media boot, using the livesys init scripts that are added at kickstart time. You don't have those, so that's probably why that isn't working.
The liveuser setup init script is in the fedora-live-base kickstart file that all fedora live kickstarts include: https://pagure.io/fedora-kickstarts/blob/master/f/fedora-live-base.ks
-- 真実はいつも一つ!/ Always, there's only one truth!
Greetings,
----- Original Message -----
is it possible to populate the "Liveuser" home directory during creation of live image with livecd-creator?
I populate /root and /etc/skel during the media creation... to copy over all of the content from which I create the media. Here's what I put in my "%post --nochroot" secton. I don't know if you'll find this helpful or not.
# MontanaLinux stuff HOSTDIR="/root/livecd-creator/MontanaLinux" cp -f "$HOSTDIR/.tmux.conf" "$INSTALL_ROOT/etc/skel/" cp -f "$HOSTDIR/.tmux.conf" "$INSTALL_ROOT/root/" mkdir "$INSTALL_ROOT/root/livecd-creator" cp -f -r $HOSTDIR "$INSTALL_ROOT/root/livecd-creator/"
Note, what you put in /etc/skel (completely unrelated to live media) will be copied to new (local) user's home directories. And that includes the liveuser.
TYL,
livecd@lists.fedoraproject.org