Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
environments-recipes
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
grid5000
environments-recipes
Commits
bffab3ce
Commit
bffab3ce
authored
7 years ago
by
Pierre Neyron
Browse files
Options
Downloads
Patches
Plain Diff
[kadeploy_deploy_kernel] fix network: add tempo for link to be up
parent
e882f681
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kadeploy3_deploy_kernel_from_scratch/kadeploy3_deploy_kernel-jessie.yaml
+18
-1
18 additions, 1 deletion
...y_kernel_from_scratch/kadeploy3_deploy_kernel-jessie.yaml
with
18 additions
and
1 deletion
kadeploy3_deploy_kernel_from_scratch/kadeploy3_deploy_kernel-jessie.yaml
+
18
−
1
View file @
bffab3ce
...
@@ -164,7 +164,7 @@ setup:
...
@@ -164,7 +164,7 @@ setup:
-
/etc/motd
-
/etc/motd
-
|
-
|
Welcome to Kadeploy3 deployment ramdisk OS
Welcome to Kadeploy3 deployment ramdisk OS
Geerated from $${kameleon_recipe_name} (Debian $${release}, $${deb_kernel} kernel, $${deb_arch}) on $(date +'%F %T')
Ge
n
erated from $${kameleon_recipe_name} (Debian $${release}, $${deb_kernel} kernel, $${deb_arch}) on $(date +'%F %T')
-
set_root_authorized_keys
:
-
set_root_authorized_keys
:
-
exec_in
:
mkdir -p /root/.ssh
-
exec_in
:
mkdir -p /root/.ssh
-
exec_in
:
chmod 755 /root/.ssh
-
exec_in
:
chmod 755 /root/.ssh
...
@@ -212,12 +212,28 @@ setup:
...
@@ -212,12 +212,28 @@ setup:
;;
;;
esac
esac
done
done
echo -n "Wait for ${eth_dev} link to be ready."
timeout=30
while ! [ -r "/sys/class/net/${eth_dev}/operstate" -a $(< /sys/class/net/${eth_dev}/operstate) == "up" ] && [ $((timeout--)) -gt 0 ]; do
ip link set dev ${eth_dev} up || true
echo -n .
sleep 1
done
if [ $timeout -le 0 ]; then
echo "failed: $eth_dev link is not ready."
exit 1
else
echo
fi
echo "Call dhclient on ${eth_dev}."
ifup "$eth_dev"=dhcp
ifup "$eth_dev"=dhcp
if [ ! -f "/var/lib/dhcp/dhclient.${eth_dev}.leases" ]
if [ ! -f "/var/lib/dhcp/dhclient.${eth_dev}.leases" ]
then
then
echo "failed: no DHCP lease for $eth_dev."
exit 1
exit 1
fi
fi
mkdir -p /rambin /mnt/dest /mnt/tmp
mkdir -p /rambin /mnt/dest /mnt/tmp
echo "Listen on TCP port 25300 for kadeploy3 server."
(while true; do nc -l -p 25300; done) &
(while true; do nc -l -p 25300; done) &
exit 0
exit 0
EOF
EOF
...
@@ -253,6 +269,7 @@ export:
...
@@ -253,6 +269,7 @@ export:
-o -path './var/tmp/*' -prune \
-o -path './var/tmp/*' -prune \
-o -path './var/cache/*' -prune \
-o -path './var/cache/*' -prune \
-o -path './var/lib/apt/lists/*' -prune \
-o -path './var/lib/apt/lists/*' -prune \
-o -path './var/lib/dhcp/*' -prune \
-o -path './tmp/*' -prune \
-o -path './tmp/*' -prune \
-o -path './root/kameleon_workdir' -prune \
-o -path './root/kameleon_workdir' -prune \
-o -path './vmlinuz' -prune \
-o -path './vmlinuz' -prune \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment