>>>>> On Mon, 16 Jun 2025 11:12:22 -0500, "John G. Heim" <[email protected]> 
>>>>> said:

    > $ROOTCMD mkdir -p $xfdir
    >          $ROOTCMD cp /etc/xdg/xfce4/panel/default.xml 
$xfdir/xfce4-panel.xml
    >          # group name is the same as user name
    >          $ROOTCMD chown -R $username:$username $userdir/.config

    > ...., why did the autor of thatcode not use fcopy?
fcopy is perfect if you have multiple, different versions of a config
file that you need to copy depending on a FAI class.
If you just have one variant of this file, it's easier to copy this
without using fcopy. For fcopy you need to create an aditional
subdirectory in the /srv/fai/config/files subdir tree.

I personally use this function in my FAI config space for copying
files without FAI classes:

cppmt() {
cp -bS.bak --preserve=mode,timestamps -uv $FAI/files/$1 $target/$1
}

You may not want to use -u.
-- 
regards Thomas

Antwort per Email an