Fix scratch boot sync.

netsetup
Mike Hiretsky 13 years ago
parent d91a6e23a7
commit 65773dff40

@ -0,0 +1 @@
# Calculate path=/etc/runlevels os_install_scratch==on

@ -0,0 +1 @@
# Calculate link=/etc/init.d/scratch symbolic

@ -0,0 +1,15 @@
# Calculate chmod=0755 os_install_scratch==on
#!/sbin/runscript
depend() {
need localmount
}
stop() {
# Sync boot scratch
if [[ -e /boot ]] && [[ -e /mnt/scratch/boot ]]
then
ebegin "Synchronize /boot for scratch mode"
rsync -a -x --delete /boot/ /mnt/scratch/boot/ && eend 0 || eend 1
fi
}

@ -1,8 +0,0 @@
# Calculate os_install_scratch==on append=after comment=#
# for synchronize ROOTDEV/workspace/boot with ROOTDEV/boot
if [[ -e /boot ]] && [[ -e /mnt/scratch/boot ]]
then
ebegin "Synchronize /boot for scratch mode"
rsync -a -x --delete /boot/ /mnt/scratch/boot/ && eend 0 || eend 1
fi
Loading…
Cancel
Save