Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rake: Recreate the ramdisk image on each rake install #109

Merged
merged 1 commit into from
Nov 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ task :create_ramdisk_image do
end

desc 'Compiles and installs chaos'
task install: [:install_folders, :iso_image]
task install: [:create_ramdisk_image, :install_folders, :iso_image]

task :install_folders do
FileUtils.rm_rf INSTALL_ROOT
Expand Down
9 changes: 7 additions & 2 deletions programs/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ task :clean do
end

task install: :default do
# Disabled for now, since the code that generates the folder structure isn't here yet.
# sh 'mcopy -o startup u:/config/servers/boot'
# The volume is always recreated on 'rake install', so the folder structure must be created from scratch.
sh 'mmd u:/config'
sh 'mmd u:/config/servers'
sh 'mmd u:/config/servers/boot'
sh 'mcopy -o startup u:/config/servers/boot'

sh 'mmd u:/programs'

SUBFOLDERS.each do |folder|
sh "cd #{folder} && #{RAKE_COMMAND} install"
Expand Down