Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dotfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Jens Nolte
dotfiles
Commits
649fce02
Commit
649fce02
authored
3 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Use partprobe instead of sleep when waiting for a new partition table
parent
cb43872a
No related branches found
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
bin/lib/installation.nix
+3
-2
3 additions, 2 deletions
bin/lib/installation.nix
with
3 additions
and
2 deletions
bin/lib/installation.nix
+
3
−
2
View file @
649fce02
...
...
@@ -26,6 +26,7 @@ let
btrfs-bin
=
"
${
btrfsProgs
}
/bin/btrfs"
;
fzf-bin
=
"
${
fzf
}
/bin/fzf"
;
jq-bin
=
"
${
jq
}
/bin/jq"
;
partprobe-bin
=
"
${
busybox
}
/bin/partprobe"
;
swap
=
(
if
template
?
swap
then
template
.
swap
else
"8G"
);
luks
=
template
.
luks
;
...
...
@@ -179,8 +180,8 @@ assert (typeOf swap) == "string";
''
}
''
else
abort
"Invalid bootloader configured in template:
${
template
.
bootloader
}
"
}
#
Partitons take a while to settle, waiting makes sure the old partitions have disappeared and new partitions are available
sleep 1s
#
Ensure partition table changes have been registered by the kernel
${
partprobe-bin
}
$block_device
print_info "Creating partitions"
...
...
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