Re: Can't git -m flag for fcopy to work
Thomas Lange <[email protected]> Tue, 17 Jun 2025 09:28:02 +0200
| Newsgroups | gmane.linux.debian.fai |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On Mon, 16 Jun 2025 11:12:22 -0500, "John G. Heim" <[email protected]= sc.edu> said: > $ROOTCMD mkdir -p $xfdir > =A0=A0=A0=A0=A0=A0=A0 $ROOTCMD cp /etc/xdg/xfce4/panel/default.x= ml $xfdir/xfce4-panel.xml > =A0=A0=A0=A0=A0=A0=A0 # group name is the same as user name > =A0=A0=A0=A0=A0=A0=A0 $ROOTCMD chown -R $username:$username $use= rdir/.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=3Dmode,timestamps -uv $FAI/files/$1 $target/$1 } You may not want to use -u. --=20 regards Thomas