diff options
author | maximilian attems <maks@debian.org> | 2006-01-24 12:27:42 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2006-01-24 12:27:42 +0100 |
commit | 5ac8871bdc5093eb2b570937dcc37167b904cb8e (patch) | |
tree | 283b2d7b6e8497f960982a2fe0225251900d9773 /update-initramfs | |
parent | f2688cc18d0e0420ad4ad069ed6bb32b2869badb (diff) | |
download | initramfs-tools-5ac8871bdc5093eb2b570937dcc37167b904cb8e.tar.gz initramfs-tools-5ac8871bdc5093eb2b570937dcc37167b904cb8e.zip |
sync 0.40ubuntu16
Diffstat (limited to 'update-initramfs')
-rw-r--r-- | update-initramfs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/update-initramfs b/update-initramfs index 644a1aa..0d757b1 100644 --- a/update-initramfs +++ b/update-initramfs @@ -112,6 +112,13 @@ get_sorted_versions() verbose "Available versions: ${version_list}" } +set_current_version() +{ + if [ -f /boot/vmlinu?-`uname -r` ]; then + version=`uname -r` + fi +} + set_linked_version() { if [ -L /initrd.img ]; then @@ -160,6 +167,10 @@ create() update() { if [ -z "${version}" ]; then + set_current_version + fi + + if [ -z "${version}" ]; then set_linked_version fi @@ -227,6 +238,7 @@ altered_check() # Defaults verbose=0 yes=0 +# We default to takeover=1 in Ubuntu, but not Debian takeover=0 ## |