Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipck
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
osak
lipck
Commits
1b5a41a2
Commit
1b5a41a2
authored
10 years ago
by
Christopher Spinrath
Browse files
Options
Downloads
Patches
Plain Diff
Converted remater_initrd to Makefile
parent
f4179cb9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+20
-1
20 additions, 1 deletion
Makefile
scripts/remaster_initrd.sh
+0
-86
0 additions, 86 deletions
scripts/remaster_initrd.sh
with
20 additions
and
87 deletions
Makefile
+
20
−
1
View file @
1b5a41a2
...
...
@@ -277,7 +277,26 @@ initrd_clean_both:
initrd_remaster
:
$(ARCH_DIR)$(STATE_DIR)/initrd_remastered
$(call gentargets,$(STATE_DIR)/initrd_remastered)
:
$(call archdir
,
%)$(STATE_DIR)/initrd_extracted $(call archdir
,
%)$(STATE_DIR)/rootfs_remastered
$(
CURDIR
)
/scripts/remaster_initrd.sh
"
$(
CURDIR
)
"
"
$(
call archdir,
$*
)$(
INITRD
)
"
"
$(
call archdir,
$*
)$(
ROOTFS
)
"
mkdir
-p
"
$(
call archdir,
$*
)$(
INITRD
)
/lip"
#nmtelekinese
mkdir
-p
"$(call archdir,$*)$(INITRD)/lip/no-bootloader-icon"
cp
"$(CURDIR)/contrib/initrd/no-bootloader-icon/ubiquity-kdeui.desktop"
"$(call archdir,$*)$(INITRD)/lip/no-bootloader-icon/"
cp
"$(CURDIR)/contrib/initrd/no-bootloader-icon/25adduser"
"$(call archdir,$*)$(INITRD)/scripts/casper-bottom/"
chmod
+x
"$(call archdir,$*)$(INITRD)/scripts/casper-bottom/25adduser"
#liphook
cp
"$(CURDIR)/contrib/initrd/initrd_hook/24liphook"
"$(call archdir,$*)$(INITRD)/scripts/casper-bottom/"
chmod
+x
"$(call archdir,$*)$(INITRD)/scripts/casper-bottom/24liphook"
#TODO generate ORDER
cp
"$(CURDIR)/contrib/initrd/initrd_hook/ORDER"
"$(call archdir,$*)$(INITRD)/scripts/casper-bottom/"
#install new kernel modules
$(RM)
"$(call archdir,$*)$(INITRD)/lib/modules/"
*
version
=
$$(
basename
$$(
readlink
-f
"
$(
call archdir,
$*
)$(
ROOTFS
)
/vmlinuz"
)
|
cut
-d
'-'
-f2-
)
\
cp
-a
"
$(
call archdir,
$*
)$(
ROOTFS
)
/lib/modules/
$$
version"
"
$(
call archdir,
$*
)$(
INITRD
)
/lib/modules"
$(
call
patch_all,
$(
CURDIR
)
/patches/initrd,
$(
call archdir,
$*
)$(
INITRD
))
touch
"$(call archdir,$*)$(STATE_DIR)/initrd_remastered"
initrd_pack
:
$(ARCH_DIR)$(INITRD_TARGET)
...
...
This diff is collapsed.
Click to expand it.
scripts/remaster_initrd.sh
deleted
100755 → 0
+
0
−
86
View file @
f4179cb9
#!/bin/bash
#This file is part of lipck - the "linux install party customization kit".
#
# Copyright (C) 2014 trilader, Anwarias, Christopher Spinrath
#
# lipck is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# lipck is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with lipck. If not, see <http://www.gnu.org/licenses/>.
set
-e
SCRIPT_DIR
=
"
$1
"
IRD
=
"
$2
"
ROOTFS
=
"
$3
"
if
[
!
-d
"
$SCRIPT_DIR
"
]
;
then
echo
"Expected lipck base path as first argument!"
exit
1
fi
if
[
!
-d
"
$IRD
"
]
;
then
echo
"Expected initrd root directory as second argument!"
exit
2
fi
if
[
!
-d
"
$ROOTFS
"
]
;
then
echo
"Expected rootfs directory as third argument!"
exit
3
fi
CONTRIB_DIR
=
"
$SCRIPT_DIR
/contrib/initrd"
if
[
-e
"
$SCRIPT_DIR
/scripts/common_functions.sh"
]
;
then
source
"
$SCRIPT_DIR
/scripts/common_functions.sh"
fi
function
install_nmtelekinese
()
{
mkdir
-p
"
$IRD
/lip/nm"
cp
"
$CONTRIB_DIR
/nmtelekinese/nmtelekinese.desktop"
"
$IRD
/lip/nm"
cp
"
$CONTRIB_DIR
/nmtelekinese/nmtelekinese.py"
"
$IRD
/lip/nm"
cp
"
$CONTRIB_DIR
/nmtelekinese/26mopsmops"
"
$IRD
/scripts/casper-bottom/"
chmod
+x
"
$IRD
/scripts/casper-bottom/26mopsmops"
}
function
add_no_bootloader_icon
()
{
mkdir
-p
"
$IRD
/lip/no-bootloader-icon"
cp
"
$CONTRIB_DIR
/no-bootloader-icon/ubiquity-kdeui.desktop"
"
$IRD
/lip/no-bootloader-icon/"
# cp "$SCRIPT_DIR/no-bootloader-icon/ubiquity-kdeui-no-bootloader.desktop" "$IRD/lip/no-bootloader-icon/"
cp
"
$CONTRIB_DIR
/no-bootloader-icon/25adduser"
"
$IRD
/scripts/casper-bottom/"
chmod
+x
"
$IRD
/scripts/casper-bottom/25adduser"
}
function
install_liphook
()
{
cp
"
$CONTRIB_DIR
/initrd_hook/24liphook"
"
$IRD
/scripts/casper-bottom/"
chmod
+x
"
$IRD
/scripts/casper-bottom/24liphook"
cp
"
$CONTRIB_DIR
/initrd_hook/ORDER"
"
$IRD
/scripts/casper-bottom/"
}
function
replace_modules
()
{
local
version
=
$(
basename
$(
readlink
-f
"
$ROOTFS
/vmlinuz"
)
|
cut
-d
'-'
-f2-
)
rm
-rf
"
$IRD
/lib/modules/*"
cp
-a
"
$ROOTFS
/lib/modules/
$version
"
"
$IRD
/lib/modules"
}
mkdir
-p
"
$IRD
/lip"
install_nmtelekinese
#add_no_bootloader_icon
install_liphook
replace_modules
patch_all
"
$SCRIPT_DIR
/patches/initrd"
"
$IRD
"
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