Browse Source
If we're about to start a Live image (i.e. if /dev/mapper/live-rw exists) this script will take any files found in /updates (inside the initramfs!) and and copy them into $NEWROOT. This allows for hotfixes to be applied to existing Live images without rebuilding the entire image. Signed-off-by: Will Woods <wwoods@redhat.com>master 012


2 changed files with 8 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||||||
|
#!/bin/sh |
||||||
|
if [ -b /dev/mapper/live-rw ]; then |
||||||
|
if [ "`echo /updates/*`" != "/updates/*" ]; then |
||||||
|
echo "Applying updates to live image..." |
||||||
|
/bin/cp -a /updates/* $NEWROOT |
||||||
|
fi |
||||||
|
fi |
Loading…
Reference in new issue