]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - IMG/cpio/ventoy/hook/rhel7/ventoy-timeout.sh
Edited! (#2105)
[Ventoy.git] / IMG / cpio / ventoy / hook / rhel7 / ventoy-timeout.sh
index 8aac1690cc926f8169f0496be2da06f00d211aec..cfd339f7effcba75c107e45054375ba5b04a2c51 100644 (file)
@@ -28,8 +28,20 @@ if [ ! -e /dev/ventoy ]; then
     mknod -m 660 /dev/ventoy  b  $blkdev_num_mknod
 fi
 
+if [ -f $VTOY_PATH/ventoy_ks_rootpath ]; then
+    vt_ks_rootpath=$(cat $VTOY_PATH/ventoy_ks_rootpath)
+    vtlog "ks rootpath <$vt_ks_rootpath>"
+    if [ -e /sbin/fetch-kickstart-disk ]; then
+        vtlog "fetch-kickstart-disk ..."        
+        /sbin/fetch-kickstart-disk /dev/ventoy "$vt_ks_rootpath"
+    fi
+fi
+
 if [ -e /sbin/anaconda-diskroot ]; then
     vtlog "set anaconda-diskroot /dev/ventoy ..."
+
+    #busybox cp doesn't support -t option (issue 1900)
+    /bin/cp -a /bin/cp $BUSYBOX_PATH/cp
     /sbin/anaconda-diskroot /dev/ventoy
 fi