Option: copy no files #22

Closed
opened 2019-11-01 21:41:07 +01:00 by ygoe · 1 comment
ygoe commented 2019-11-01 21:41:07 +01:00 (Migrated from github.com)

I'm using this script to set up new servers. It does two things here: Prepare the disks, RAID, LVM and file systems; and copy the OS files (including making necessary changes to the config files).

When restoring a server from a file-based backup, no OS files need to be copied from a default image. I only need the disk preparation parts of this script, then I can restore all files in the file system from my backup.

It would be helpful to have an option to this script that only performs the first part and then does not copy any files into the new file system(s).

I'm using this script to set up new servers. It does two things here: Prepare the disks, RAID, LVM and file systems; and copy the OS files (including making necessary changes to the config files). When restoring a server from a file-based backup, no OS files need to be copied from a default image. I only need the disk preparation parts of this script, then I can restore all files in the file system from my backup. It would be helpful to have an option to this script that only performs the first part and then does not copy any files into the new file system(s).
asciiprod commented 2019-11-25 15:29:16 +01:00 (Migrated from github.com)

You can achieve this effect by passing an empty tar.gz (with a valid name) to installimage.
It will then break (when it tries to customize the system), but partitions and LVM is set up at this point.
Which is basically what you wanted

You can achieve this effect by passing an empty tar.gz (with a valid name) to installimage. It will then break (when it tries to customize the system), but partitions and LVM is set up at this point. Which is basically what you wanted
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DiamantTh/installimage#22
No description provided.