Revision ff7783b8 snf-image-host/snf-image-update-helper.in
b/snf-image-host/snf-image-update-helper.in | ||
---|---|---|
7 | 7 |
|
8 | 8 |
if [ ! -e "$HELPER_PKG" ]; then |
9 | 9 |
log_error "Helper package \`$HELPER_PKG' not found." |
10 |
log_error "You need to provide this for the script to work" |
|
10 |
log_error "You need to provide this for the script to work."
|
|
11 | 11 |
exit 1 |
12 | 12 |
fi |
13 | 13 |
|
... | ... | |
66 | 66 |
echo "not found" |
67 | 67 |
echo "Debootstraping to create a new root filesystem:" |
68 | 68 |
debootstrap --arch amd64 --include "$HELPER_EXTRA_PKGS" \ |
69 |
--variant=minbase squeeze "$target" 2>&1 | sed -e 's/^/DEBOOTSTRAP: /g'
|
|
69 |
--variant=minbase stable "$target" 2>&1 | sed -e 's/^/DEBOOTSTRAP: /g'
|
|
70 | 70 |
|
71 | 71 |
# remove the downloaded debs, as they are no longer needed |
72 | 72 |
find "$target/var/cache/apt/archives" -type f -name '*.deb' -print0 | \ |
... | ... | |
131 | 131 |
# |
132 | 132 |
# By default this script does nothing. |
133 | 133 |
|
134 |
/usr/bin/snf-image-helper |
|
134 |
if ! grep -q snf_image_activate_helper /proc/cmdline; then |
|
135 |
echo "WARNING: NOT calling snf-image-helper, add snf_image_activate_helper" |
|
136 |
echo "to the kernel command line if you want to do so." |
|
137 |
else |
|
138 |
/usr/bin/snf-image-helper --force |
|
139 |
fi |
|
135 | 140 |
|
136 | 141 |
exit 0 |
137 | 142 |
EOF |
Also available in: Unified diff